Welcome! Log In Create A New Profile

Advanced

Re: worker_connections and worker_rlimit_nofile

March 01, 2010 05:10AM
On Feb 04, Max wrote:
>I used to use worker_connections but wen I use it, I got a lot of too many
>open files in the error log.
>
>Now, I changed it to worker_rlimit_nofile 10240 and the problem has been
>solved (I google it and found the solution).
>
>I just want to ask, what's the differences between worker_connections and
>worker_rlimit_nofile? Why worker_connections will casue too many open files
>problem? Thanks.

worker_connections specifies how many network connections a worker is
allowed to maintain. worker_rlimit_nofile specifies how many open file
handles are allowed per worker. Since all tcp connections are file
handles (descriptors) on *nix systems, worker_rlimit_nofile must be
greater than worker_connections.

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

worker_connections and worker_rlimit_nofile

Max February 04, 2010 03:08AM

Re: worker_connections and worker_rlimit_nofile

anomalizer March 01, 2010 05:10AM

Re: worker_connections and worker_rlimit_nofile

Maxim Dounin March 01, 2010 06:00AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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