Welcome! Log In Create A New Profile

Advanced

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin
June 07, 2022 09:26PM
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
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

worker_connections are not enough, reusing connections with idle workers

roger_bc June 03, 2022 08:40PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 03, 2022 11:42PM

Re: worker_connections are not enough, reusing connections with idle workers

roger_bc June 07, 2022 04:20PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 07, 2022 05:32PM

Re: worker_connections are not enough, reusing connections with idle workers

roger_bc June 07, 2022 05:44PM

Re: worker_connections are not enough, reusing connections with idle workers

Sergey A. Osokin June 07, 2022 09:26PM

Re: worker_connections are not enough, reusing connections with idle workers

Maxim Dounin June 07, 2022 07:40PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 124
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready