[Twisted-Python] 100% CPU on high opened descriptors
Reza Lotun
rlotun at gmail.com
Thu May 5 10:52:56 EDT 2011
2011/5/5 Juan Antonio Ibañez Santorum <juanito1982 at 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 at gmail.com
work: reza at tweetdeck.com
twitter: @rlotun
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110505/a3b95328/attachment.htm
More information about the Twisted-Python
mailing list