Welcome! Log In Create A New Profile

Advanced

Re: max_clients and keep alive

Maxim Dounin
June 10, 2009 05:07PM
Hello!

On Wed, Jun 10, 2009 at 11:01:30PM +0530, Arvind Jayaprakash wrote:

[...]

> >Feel free to increase worker_connections. Note also that worker
> >connections are cheap - they consume only about 200 bytes of
> >memory per connection, so setting something like 16384 isn't a
> >big deal.
> >
> >The only thing to keep in mind is that your OS settings should be
> >tuned as well or this may lead to bad results. E.g. make sure
> >that worker_connections are less than available to nginx process
> >number of file descriptors (kern.maxfilesperproc under FreeBSD).
>
> If the master process starts as root and worker_rlimit_nofile is set,
> then does any of system limit wrt fd matter?

Yes, they does matter. Via setrlimit() you may not set limits
greater than kernel ones (like kern.maxfilesperproc,
kern.maxfiles under FreeBSD).

On the other hand, worker_rlimit_nofile usually required only when
you expanded kernel limits and want running nginx to expand it's
limits without restarting master (as rlimits usally defaults to
kernel limits at the time of process creation).

Maxim Dounin
Subject Author Posted

max_clients and keep alive

Tristan Griffiths May 17, 2009 07:54PM

Re: max_clients and keep alive

Maxim Dounin May 18, 2009 07:07AM

RE: max_clients and keep alive

Tristan Griffiths May 18, 2009 07:49PM

Re: max_clients and keep alive

anomalizer June 10, 2009 01:31PM

Re: max_clients and keep alive

Maxim Dounin June 10, 2009 05:07PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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