too many open files
Maxim Dounin
mdounin at mdounin.ru
Thu Sep 10 19:27:54 MSD 2009
Hello!
On Thu, Sep 10, 2009 at 11:10:28AM -0400, Ilan Berkner wrote:
> how to handle?
>
> 2009/09/10 10:09:30 [alert] 9691#0: accept() failed (24: Too many open
> files)
You have to tune your OS. Under FreeBSD:
sysctl kern.maxfiles=65535
sysctl kern.maxfilesperproc=60000
and then either restart nginx or reconfigure it with
worker_rlimit_nofile set in config.
Under Linux it should be something like:
echo 65535 > /proc/sys/fs/file-max
(never tested).
Consult your OS docs for instructions how to make this changes
permanent (usually you have to add them into /etc/sysctl.conf).
Maxim Dounin
More information about the nginx
mailing list