[Twisted-Python] 100% CPU on high opened descriptors
Juan Antonio Ibañez Santorum
juanito1982 at gmail.com
Thu May 5 15:02:28 EDT 2011
Thank you Reza!
2011/5/5 Reza Lotun <rlotun at gmail.com>
> 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
>
>
> _______________________________________________
> Twisted-Python mailing list
> Twisted-Python at twistedmatrix.com
> http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://twistedmatrix.com/pipermail/twisted-python/attachments/20110505/e130fc3a/attachment.htm
More information about the Twisted-Python
mailing list