Welcome! Log In Create A New Profile

Advanced

Nginx Windows High Traffic issues

June 26, 2014 09:41AM
So i spent a while on this one and turns out the problem is a little function in nginx's core called "worker_rlimit_nofile".


But for me on windows (i don't know if it does it for linux users too.) grinds my site down to a halt unless you increase its value.

Why does it do this ?
http://nginx.org/en/docs/ngx_core_module.html#worker_rlimit_nofile

Even with the following nginx builds for high traffic production enviorments http://nginx-win.ecsds.eu/ It still seems like the worker_rlimit_nofile is to small by default on nginx start up so unless you know to add the command into your nginx config with some insanely high value to it your site will seem slow as hell.

I read on stackoverflow the following.
events {
worker_connections 19000; # It's the key to high performance - have a lot of connections available
}

worker_rlimit_nofile 20000; # Each connection needs a filehandle (or 2 if you are proxying)

But in my config i set the following just to test
events {
worker_connections 16384;
multi_accept on;
}
worker_rlimit_nofile 9990000000;

And everything still works fine can anyone explain so i can understand why this value is so small in the first place ?
Subject Author Posted

Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 09:41AM

Re: Nginx Windows High Traffic issues

itpp2012 June 26, 2014 10:02AM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 10:18AM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 11:20AM

Re: Nginx Windows High Traffic issues

itpp2012 June 26, 2014 01:26PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 02:03PM

Re: Nginx Windows High Traffic issues

Maxim Dounin June 26, 2014 02:46PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 03:27PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 03:33PM

Re: Nginx Windows High Traffic issues

itpp2012 June 26, 2014 05:20PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 05:53PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 26, 2014 06:29PM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 01:56AM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 10:14AM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 12:25PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 12:28PM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 01:16PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 01:23PM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 01:55PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 02:33PM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 03:25PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 03:35PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 04:20PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 04:30PM

Re: Nginx Windows High Traffic issues

itpp2012 June 27, 2014 05:19PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 05:46PM

Re: Nginx Windows High Traffic issues

Paul Schlie June 27, 2014 06:46PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 27, 2014 08:27PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 28, 2014 12:38AM

Re: Nginx Windows High Traffic issues

c0nw0nk June 29, 2014 12:00PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 29, 2014 01:20PM

Re: Nginx Windows High Traffic issues

Maxim Dounin June 30, 2014 01:54PM

Re: Nginx Windows High Traffic issues

c0nw0nk June 30, 2014 02:20PM

Re: Nginx Windows High Traffic issues

c0nw0nk July 01, 2014 12:05AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 66
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready