Running out of file descriptors under load

Dan Webb dan at danwebb.net
Tue Apr 1 01:25:40 MSD 2008


Hi All,
I'm running a Rails site with nginx/mongrel on a fairly well specced
dedicated box w/ 4GB RAM and during a spike both the Mongrels and nginx logs
started to complain about running out of file descriptors.  I've googled for
this and not found anything particularly useful so I wondered if anyone here
has experienced this, has any fixes or any tips on how to diagnose the
problem.  The few posts found via Google all recommend adjusting the global
descriptor limits (via ulimit) but its already set high (about 200000) and
there are no per user limits set.  I've not set worker_rlimit_nofile in
nginx but Im not sure thats the problem as the mongrels where hitting the
file descriptor limits as well.

Any wisdom?

Thanks,

-- 
Dan Webb
http://www.danwebb.net

aim: danwrong123
skype: danwrong
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://nginx.org/pipermail/nginx/attachments/20080331/b1c95d0f/attachment.html>


More information about the nginx mailing list