worker_connections allocates a lot of memory
shaharmor
nginx-forum at forum.nginx.org
Tue Jun 16 07:42:04 UTC 2020
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?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,288358,288358#msg-288358
More information about the nginx
mailing list