Welcome! Log In Create A New Profile

Advanced

Re: Memory usage doubles on reload

Maxim Dounin
March 05, 2014 10:50PM
Hello!

On Wed, Mar 05, 2014 at 05:47:47PM -0500, PetrHolik wrote:

> Hello we are running nginx 1.2.7 with this in conf:
> output_buffers 5 5m;
> sendfile off;
>
> That works well, BUT if I reload server configuration with nginx -s reload
> Memory consumptions for few hours(clients use long lived(few hours) tcp
> connections). Is this behavior correct? Can we avoid this? We have to had as
> twice much RAM to be able to restart nginx under load.

On configuration reload nginx spawns new worker processes, and
gracefully shuts down old worker processes (and gracefull shutdown
may take a while, especially if there are long-lived requests).
That is, behaviour you observe is expected.

Some more details can be found here:
http://nginx.org/en/docs/control.html

--
Maxim Dounin
http://nginx.org/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Memory usage doubles on reload

PetrHolik March 05, 2014 05:47PM

Re: Memory usage doubles on reload

Maxim Dounin March 05, 2014 10:50PM

Re: Memory usage doubles on reload

PetrHolik March 06, 2014 03:01PM

Re: Memory usage doubles on reload

Maxim Dounin March 07, 2014 05:28AM

Re: Memory usage doubles on reload

PetrHolik March 07, 2014 09:40AM

Re: Memory usage doubles on reload

pavelz September 18, 2017 07:07AM

Re: Memory usage doubles on reload

PetrHolik September 24, 2017 06:17AM

AW: Memory usage doubles on reload

Lukas Tribus September 20, 2017 07:50AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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