Welcome! Log In Create A New Profile

Advanced

Re: worker_connections exceed open file resource limit

Maxim Dounin
March 08, 2021 08:40PM
Hello!

On Sun, Mar 07, 2021 at 06:47:20PM -0500, bee.lists wrote:

> Big Sur has a warning that 1024 exceeds open file resource limit of 256.
>
> Is this normal, considering I’ve set my worker_connections to 1024 in nginx.conf?
>
> Also, is this a package manager designation?

For production use, you should either set worker_connections below
the limit, or raise the limit. Without this, nginx might end up
in a situation when it cannot accept new connections due to
maxfiles limit being reached by the process, and cannot do
anything with this. And hence nginx prints the warning that your
system is misconfigured.

Also, 1024 is somewhat low for any serious production use, so you
probably want to raise the limit. In simple cases just "ulimit
-n" should be enough (or you can use worker_rlimit_nofile as an
easier alternative, http://nginx.org/r/worker_rlimit_nofile). In
more complex cases you might need to adjust kernel limits, such as
kern.maxfiles and kern.maxfilesperproc. Some macOS-specific
instructions can be found, for example, at
https://wilsonmar.github.io/maximum-limits/ (just the first link
from Google "macos maxfiles", looks reasonable).

On the other hand, given macOS, this is highly unlikely going to
be a production use, so you can safely ignore the warning.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

worker_connections exceed open file resource limit

daBee March 07, 2021 06:48PM

Re: worker_connections exceed open file resource limit

Maxim Dounin March 08, 2021 08:40PM

Re: worker_connections exceed open file resource limit

daBee March 09, 2021 05:30AM

Re: worker_connections exceed open file resource limit

Maxim Dounin March 09, 2021 09:40AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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