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

Igor Sysoev igor at sysoev.ru
Wed Dec 19 08:32:56 UTC 2012


On Dec 19, 2012, at 11:52 , howard chen wrote:

> 
> Hi,
> 
> 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 entries
> 
> "..(24: Too many open files),.."
> 
> Any way to debug? Thanks..

What does "cat /proc/sys/fs/file-max" ouuput ?


--
Igor Sysoev
http://nginx.com/support.html



More information about the nginx mailing list