Welcome! Log In Create A New Profile

Advanced

Re: Memory usage doubles on reload

Maxim Dounin
March 07, 2014 05:28AM
Hello!

On Thu, Mar 06, 2014 at 03:01:49PM -0500, PetrHolik wrote:

> Hello Maxim, thanks for reply.
>
> Is there possibility to purge allocated buffer(RAM) in old(gracefully)
> worker processes? IMO worker thread have allocated all memory till last
> clients disconnects. That is really isue for us - we have currently 32Gigs
> of spare RAM to be able to handle reload under load.

All allocations done for a particular requests are freed as long
as the request is finished. The problem though is that OS
memory allocators rarely return freed memory back to the OS,
especially on Linux. You may try playing with allocators and/or
allocator options to make things better.

Note well that "spare" memory isn't really spare, as it can be
used by OS for file cache.

--
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: 129
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready