Handling nginx's too many open files even I have the correct ulimit
Jader H. Silva
jaderhs5 at gmail.com
Fri May 17 12:45:56 UTC 2013
Try setting worker_rlimit_nofile<http://wiki.nginx.org/CoreModule#worker_rlimit_nofile>
2013/5/15 0liver <nginx-forum at nginx.us>
> I'm facing the same problem here, but I found much lower settings on our
> machine (a VPS running Ubuntu 12.04):
> # the hard limit of open files
> www-data at 215247:~$ ulimit -Hn
> # the soft limit of open files
> www-data at 215247:~$ ulimit -Sn
> # maximum number of file descriptors enforced on a kernel level
> # for more info see: http://serverfault.com/q/122679/88043
> root at 215247:~# cat /proc/sys/fs/file-max
> So I would hope that setting the ulimit values for max open files per user
> to 262144 (H) and 131072 (S) will help.
> But then again, Howard Chen mentioned, that he's facing this problem
> such high values on his system.
> Any suggestions?
> Posted at Nginx Forum:
> nginx mailing list
> nginx at nginx.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the nginx