Thank you Reza!<br><br><div class="gmail_quote">2011/5/5 Reza Lotun <span dir="ltr">&lt;<a href="mailto:rlotun@gmail.com">rlotun@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="im">2011/5/5 Juan Antonio Ibaņez Santorum <span dir="ltr">&lt;<a href="mailto:juanito1982@gmail.com" target="_blank">juanito1982@gmail.com</a>&gt;</span><br></div><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

I had got the same problem using &#39;-r epoll&#39; options when starting the app via twistd... When 1024 descriptors are opened, I can see 100% CPU. <div><br></div><div>Any ideas?<br><br></div></blockquote><div><br></div>

</div><div>1. Edit /etc/sysctl.conf and place the following line there:</div><div>       fs.file-max = 999999</div><div>2. Type $ sudo sysctl -p</div><div>3. Place the following two lines:</div><div><div>*       soft    nofile      999999</div>

<div>*       hard    nofile      999999</div></div><div>Either reboot, or also type in `ulimit -n 999999`</div><div>4. Check that $ ulimit -a shows your open fixes set to 999999</div><div><br></div><div>There&#39;s nothing special about 999999 - it&#39;s just some big number conveniently bigger than 1024. Enjoy.</div>

<div><br></div><div>Reza</div><div> </div></div><font color="#888888">-- <br>Reza Lotun<br>mobile: +44 (0)7521 310 763<br>email:  <a href="mailto:rlotun@gmail.com" target="_blank">rlotun@gmail.com</a><br>work:   <a href="mailto:reza@tweetdeck.com" target="_blank">reza@tweetdeck.com</a><br>

twitter: @rlotun<br><br>
</font><br>_______________________________________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com">Twisted-Python@twistedmatrix.com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python</a><br>
<br></blockquote></div><br>