Possible memory leak?
    wkbrad 
    nginx-forum at forum.nginx.org
       
    Thu Feb 28 18:43:18 UTC 2019
    
    
  
We're running Nginx version 1.15.8 but we've been seeing similar issues with
other versions too and on all of our servers that have a high number of
vhosts.
The issue is that when you do an nginx reload it ends up using almost 2x the
ram as it was previously.  Here is a test I ran.
--------------------------------------------------------------------------------
 21.3 MiB +   1.4 GiB =   1.4 GiB	nginx (3)
 21.3 MiB +   1.4 GiB =   1.4 GiB	nginx (3)
484.2 MiB +   1.4 GiB =   1.9 GiB	nginx (3)
588.1 MiB +   1.4 GiB =   2.0 GiB	nginx (3)
720.3 MiB +   1.4 GiB =   2.1 GiB	nginx (3)
  1.4 GiB +   1.4 GiB =   2.8 GiB	nginx (3)
 18.0 MiB +   2.7 GiB =   2.7 GiB	nginx (3)
 20.8 MiB +   2.7 GiB =   2.7 GiB	nginx (3)
 20.8 MiB +   2.7 GiB =   2.7 GiB	nginx (3)
--------------------------------------------------------------------------------
I expect the ram usage to increase while the reload is happening but after
it's done shouldn't the ram usage go back to about the same level?
This issue is completely reproducible across all of our servers and if I do
a full restart, ram usage goes back down to normal.
Any thoughts?
Posted at Nginx Forum: https://forum.nginx.org/read.php?2,283216,283216#msg-283216
    
    
More information about the nginx
mailing list