Welcome! Log In Create A New Profile

Advanced

Re: what's difference between worker_connections and worker_rlimit_nofile

任晓磊
March 21, 2010 08:32PM
On Mon, Mar 22, 2010 at 2:52 AM, Maxim Dounin <mdounin@mdounin.ru> wrote:
> System limit on number of open files must be larger than number of
> worker_connections as any connection opens at least one file
> (usually two - connection socket and either backend connection
> socket or static file on disk).
>
>> And, what's the relationship between `ulimit -n' and worker_rlimit_nofile?
>
> Via "ulimit -n" you may set the same system limit on number of
> open files.  It doesn't really matter which method is used to set
> limit (ulimit or worker_rlimit_nofile directive).  Though
> sometimes worker_rlimit_nofile is more convenient as it allows to
> adjust limit without restarting nginx.

Thank you. I will add worker_rlimit_nofile into my nginx.conf file.
--
Ren Xiaolei

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

what's difference between worker_connections and worker_rlimit_nofile

任晓磊 March 21, 2010 09:28AM

Re: what's difference between worker_connections and worker_rlimit_nofile

Maxim Dounin March 21, 2010 03:00PM

Re: what's difference between worker_connections and worker_rlimit_nofile

任晓磊 March 21, 2010 08:32PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 209
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