Welcome! Log In Create A New Profile

Advanced

Re: Nginx Windows High Traffic issues

Maxim Dounin
June 26, 2014 02:46PM
Hello!

On Thu, Jun 26, 2014 at 09:41:15AM -0400, c0nw0nk wrote:

> 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

On unix, worker_rlimit_nofile does exactly what's documented: it
calls setrlimit(RLIMIT_NOFILE) within worker process. This allows
to change OS-imposed limit without restarting nginx. And there is
no default in nginx itself - the default is set by OS and it's
configuration.

Note well that the words "without restarting" is actually the
reason why this directive exists at all. If a restart isn't a big
deal, then OS limit can be changed by native means ("ulimit -n"
and friends).

In official nginx on Windows, worker_rlimit_nofile does nothing.
Not sure if there is an equivalent limit on Windows at all.

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
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: 58
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