Welcome! Log In Create A New Profile

Advanced

Memory consumption in case of huge number of configs

June 18, 2012 03:47PM
Hello,

I noticed following behavior of nginx recently, everything I describe here is related to the case when we have huge number of configuration files(> 1000). Once nginx is started it occupies more than 100MB of memory, memory is not freed on fork. That is expected behavior but the weird thing happens on configuration reload, once HUP signal is sent, master process doubles occupied memory size, if reload is repeated memory consumption stays the same, so it looks like memory is not reused in process of reload, instead new pool is created, which leads to the waste of memory.
Subject Author Posted

Memory consumption in case of huge number of configs

dparshin June 18, 2012 03:47PM

Re: Memory consumption in case of huge number of configs

Valentin V. Bartenev June 18, 2012 07:14PM

Re: Memory consumption in case of huge number of configs

dparshin June 19, 2012 11:42AM

Re: Memory consumption in case of huge number of configs

Maxim Dounin June 19, 2012 02:24PM

Re: Memory consumption in case of huge number of configs

Valentin V. Bartenev June 19, 2012 02:48PM

Re: Memory consumption in case of huge number of configs

Maxim Dounin June 20, 2012 01:44AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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