worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin osa at freebsd.org.ru
Wed Jun 8 01:24:47 UTC 2022


Hi Roger,

I've forgotten to ask about the nginx version, so as Maxim
Dounin recommended, please upgrade to the recent stable
version 1.22.0, https://nginx.org/en/linux_packages.html#Ubuntu

On Tue, Jun 07, 2022 at 02:42:23PM -0700, Roger Fischer wrote:
> Here are the additional details:
> 
> $ uname -a
> Linux a002 4.15.0-177-generic #186-Ubuntu SMP Thu Apr 14
> 20:23:07 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
> 
> $ cat /etc/lsb-release
> DISTRIB_ID=Ubuntu
> DISTRIB_RELEASE=18.04
> DISTRIB_CODENAME=bionic
> DISTRIB_DESCRIPTION="Ubuntu 18.04.6 LTS"
> 
> $ cat /etc/os-release
> NAME="Ubuntu"
> VERSION="18.04.6 LTS (Bionic Beaver)"
> ID=ubuntu
> ID_LIKE=debian
> PRETTY_NAME="Ubuntu 18.04.6 LTS"
> VERSION_ID="18.04"
> HOME_URL="https://www.ubuntu.com/"
> SUPPORT_URL="https://help.ubuntu.com/"
> BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
> PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
> VERSION_CODENAME=bionic
> UBUNTU_CODENAME=bionic
> 
> $ ulimit -Hn
> 1048576
> 
> $ ulimit -Sn
> 1024

I'd recommend to increase this limit, it's definitely not for PROD usage.

> $ cat /proc/sys/fs/file-max
> 262144
> 
> worker_rlimit_nofile 65535;
> 
> The ulimits are for the user that nginx runs at (only the master process runs as root).

-- 
Sergey A. Osokin



More information about the nginx mailing list