Welcome! Log In Create A New Profile

Advanced

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

June 25, 2013 07:28AM
Thanks a lot, Jader. Your hint saved me hours of additional headache after our site was almost unusable due to NGINX throwing tens of thousands of "24: Too many open files" errors.

I chose to set *worker_rlimit_nofile* to 65536 = 2^16 for peace of mind :-)

It's important to note, that the *worker_connections* count needs to be adapted as well, so that connections now won't be dropped because of a too low value here. Since we're running on a VPS with only a single core, we set *worker_connections* to 65536, as well.

From the moment I reloaded those two changes into the NGINX process, I haven't had any of "too many open file errors.

I've put together a short blog post on this here:
→ http://shades-of-orange.com/post/2013/06/24/Setting-up-NGINX-as-Reverse-Proxy-for-CampingInfo.

blog: http://shades-of-orange.com/
home: http://teamaton.com/
SubjectAuthorPosted

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

howard chenDecember 19, 2012 02:54AM

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

Igor SysoevDecember 19, 2012 03:34AM

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

howard chenDecember 19, 2012 10:32PM

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

0liverMay 15, 2013 01:11PM

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

Jader H. SilvaMay 17, 2013 08:48AM

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

0liverJune 25, 2013 07:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 51
Record Number of Users: 7 on March 06, 2014
Record Number of Guests: 229 on August 01, 2014
Powered by nginx    Powered by FreeBSD    PHP Powered    Powered by Percona     ipv6 ready