2011/5/5 Juan Antonio Ibañez Santorum <span dir="ltr">&lt;<a href="mailto:juanito1982@gmail.com">juanito1982@gmail.com</a>&gt;</span><br><div class="gmail_quote"><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>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>-- <br>Reza Lotun<br>mobile: +44 (0)7521 310 763<br>email:  <a href="mailto:rlotun@gmail.com">rlotun@gmail.com</a><br>work:   <a href="mailto:reza@tweetdeck.com">reza@tweetdeck.com</a><br>
twitter: @rlotun<br><br>