Possible memory leak?

Maxim Dounin mdounin at mdounin.ru
Thu Mar 21 13:47:50 UTC 2019


Hello!

On Thu, Mar 21, 2019 at 04:45:26PM +0300, Maxim Dounin wrote:

> On Wed, Mar 20, 2019 at 06:41:01PM -0400, wkbrad wrote:
> 
> [...]
> 
> > The first test I ran was in FreeBSD just because I was curious.  Lol.  But I
> > actually saw the exact same problem on it.  I can send you some tests if you
> > like but they look the same as the others do.
> 
> On FreeBSD you'll see that _virtual_ memory usage grows on reload, 
> but the actual memory is returned to the system and can be used by 
> other processes.  
> 
> [...]
> 
> > Notice it starts up using more memory than before but it now does not double
> > it's ram usage after a reload.  I can deal with that but I'm still curious
> > if you know why it's now using more ram.  Any thoughts on that?
> 
> This is because mmap()-based individual allocations imply additional 
> overhead.  Using mmapAnd this is are costly.

Err, sorry about this, this was a draft not meant to be sent.  
Either way, it says most of what I was going to write here.

[...]

-- 
Maxim Dounin
http://mdounin.ru/


More information about the nginx mailing list