Forum: NGINX too many open files

Posted by Ilan Berkner (Guest)
on 2010-08-30 23:18
(Received via mailing list)
Our site is getting busy and we are now getting these errors:

2010/08/30 16:10:47 [alert] 4729#0: accept() failed (24: Too many open
files)

I've already looked online in several places but am unclear about how to
more clearly diagnose the problem and correct.  Any help as always is
greatly appreciated.

Running: cat /proc/sys/fs/file-max

yields: 800669

Running ulimit

yields: unlimited

Top of Nginx configuration looks like this:

worker_processes  5;

events {
    worker_connections  4096;
}

I've looked here:

http://www.ruby-forum.com/topic/137385

and here:

http://nginx.2469901.n2.nabble.com/worker-rlimit-nofile-os-vs-master-vs-workers-td3453734.html

Running CentOS
Posted by Scott Trudeau (Guest)
on 2010-08-30 23:35
(Received via mailing list)
Ilan,

Try:

ulimit -n

Scott
Posted by unknown (Guest)
on 2010-08-30 23:42
(Received via mailing list)
Yes, that revealed the cause I think that was set to 1024.


Sent on the Sprint® Now Network from my BlackBerry®
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.