Handling nginx's too many open files even I have the correct ulimit

howard chen howachen at gmail.com
Wed Dec 19 07:52:27 UTC 2012


On ubuntu, I tried

su - www-data
ulimit -Hn
>> 200000
ulimit -Sn
>> 100000

The value seems be fine as I have worker_connections = 4000, and
worker_processes = 4, so total is 16000, and still within the limit.

But when my server become busy, I can find the error log contains the line

"..(24: Too many open files),.."

Any way to debug? Thanks..
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20121219/cbb73ad8/attachment-0001.html>

More information about the nginx mailing list