Welcome! Log In Create A New Profile

Advanced

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

Jader H. Silva
May 17, 2013 08:48AM
Try setting worker_rlimit_nofile<http://wiki.nginx.org/CoreModule#worker_rlimit_nofile>



Jader H.



2013/5/15 0liver <nginx-forum@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@215247:~$ ulimit -Hn
> 4096
> # the soft limit of open files
> www-data@215247:~$ ulimit -Sn
> 1024
> # maximum number of file descriptors enforced on a kernel level
> # for more info see: http://serverfault.com/q/122679/88043
> root@215247:~# cat /proc/sys/fs/file-max
> 262144
>
> 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
> despite
> such high values on his system.
>
> Any suggestions?
>
> Posted at Nginx Forum:
> http://forum.nginx.org/read.php?2,234191,239248#msg-239248
>
> _______________________________________________
> nginx mailing list
> nginx@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

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

howard chen December 19, 2012 02:54AM

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

Igor Sysoev December 19, 2012 03:34AM

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

howard chen December 19, 2012 10:32PM

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

0liver May 15, 2013 01:11PM

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

Jader H. Silva May 17, 2013 08:48AM

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

0liver June 25, 2013 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 314
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready