Welcome! Log In Create A New Profile

Advanced

worker_connections allocates a lot of memory

June 16, 2020 03:42AM
Hi,

I noticed that worker_connections while is defined as the maximum number of connections per worker, nginx pre-allocated enough memory to handle all possible worker_connections, even before they are actually needed.

For example, setting worker_connections to 10485760 causes nginx to take 4.3GB of memory upon init.

Is this how its supposed to be?
Is there a way to tell nginx to only allocate memory as needed?
Subject Author Posted

worker_connections allocates a lot of memory

shaharmor June 16, 2020 03:42AM

Re: worker_connections allocates a lot of memory

Marcin Wanat June 16, 2020 04:34AM

Re: worker_connections allocates a lot of memory

Maxim Dounin June 16, 2020 06:22PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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