Thank you Reza!

2011/5/5 Reza Lotun <rlotun@gmail.com>
2011/5/5 Juan Antonio Ibaņez Santorum <juanito1982@gmail.com>
I had got the same problem using '-r epoll' options when starting the app via twistd... When 1024 descriptors are opened, I can see 100% CPU. 

Any ideas?


1. Edit /etc/sysctl.conf and place the following line there:
       fs.file-max = 999999
2. Type $ sudo sysctl -p
3. Place the following two lines:
*       soft    nofile      999999
*       hard    nofile      999999
Either reboot, or also type in `ulimit -n 999999`
4. Check that $ ulimit -a shows your open fixes set to 999999

There's nothing special about 999999 - it's just some big number conveniently bigger than 1024. Enjoy.

Reza
 
--
Reza Lotun
mobile: +44 (0)7521 310 763
email:  rlotun@gmail.com
work:   reza@tweetdeck.com
twitter: @rlotun


_______________________________________________
Twisted-Python mailing list
Twisted-Python@twistedmatrix.com
http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python