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.

Oliver
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blog: http://shades-of-orange.com/
home: http://teamaton.com/
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: 184
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