Welcome! Log In Create A New Profile

Advanced

Re: Possible memory leak?

March 21, 2019 05:55PM
Hey Maxim,

Thanks again! I was a little confused at first because your tests in freebsd were so much different than mine but then I found what you did wrong.

You were testing the 2nd reload but the issue can only be seen on the first reload. Here is my test to show what I mean.
--------------------------------------------------------------------------------
root@freebsd:~ # service nginx restart; sleep 10; ps aux | grep -v grep | grep nginx ; top | grep Mem
root 864 0.0 5.4 121796 110344 - Ss 10:02 0:00.00 nginx: master process /usr/local/s
www 865 0.0 5.4 121796 110348 - S 10:02 0:00.00 nginx: worker process (nginx)
Mem: 116M Active, 2808K Inact, 87M Wired, 42M Buf, 1750M Free

root@freebsd:~ # service nginx reload ; sleep 10 ; ps aux | grep -v grep | grep nginx ; top | grep Mem
root 864 0.0 10.2 219844 209392 - Ss 10:02 0:00.45 nginx: master process /usr/local/s
www 881 0.0 10.2 219844 209388 - S 10:03 0:00.01 nginx: worker process (nginx)
Mem: 213M Active, 7652K Inact, 88M Wired, 42M Buf, 1646M Free

root@freebsd:~ # service nginx reload ; sleep 10 ; ps aux | grep -v grep | grep nginx ; top | grep Mem
root 864 0.0 11.4 242920 234400 - Ss 10:02 0:00.91 nginx: master process /usr/local/
www 898 0.0 11.4 242920 234400 - S 10:07 0:00.01 nginx: worker process (nginx)
Mem: 239M Active, 82M Inact, 89M Wired, 42M Buf, 1546M Free
--------------------------------------------------------------------------------

Notice that my 2nd reload looks just like your test. But compare the restart test to the 1st reload and you'll see what I mean. Active ram doubles, it's not in inactive, and the free ram also went down by the same amount that active ram increased.

I bet if you run that same test on your server you'll see the same thing that I do. Can you run that test and send me the results? I'm sure you know this but make sure that the reload is complete before you check the ram usage or you'll get misleading results. :)

Thanks!
Subject Author Posted

Possible memory leak?

wkbrad February 28, 2019 01:43PM

Re: Possible memory leak?

Maxim Dounin February 28, 2019 03:08PM

Re: Possible memory leak?

wkbrad February 28, 2019 03:54PM

Re: Possible memory leak?

Maxim Dounin February 28, 2019 04:50PM

Re: Possible memory leak?

wkbrad February 28, 2019 05:06PM

RE: Possible memory leak?

Reinis Rozitis February 28, 2019 05:28PM

Re: Possible memory leak?

Alceu R. de Freitas Jr. via nginx February 28, 2019 06:02PM

Re: RE: Possible memory leak?

wkbrad February 28, 2019 06:44PM

Re: Possible memory leak?

wkbrad March 07, 2019 01:33PM

Re: Possible memory leak?

Anoop Alias March 07, 2019 08:06PM

Re: Possible memory leak?

wkbrad March 07, 2019 09:35PM

Re: Possible memory leak?

Anoop Alias March 07, 2019 10:10PM

Re: Possible memory leak?

wkbrad March 08, 2019 10:39AM

Re: Possible memory leak?

Anoop Alias March 08, 2019 06:54PM

Re: Possible memory leak?

gariac March 08, 2019 01:10AM

Re: Possible memory leak?

wkbrad March 08, 2019 10:42AM

Re: Possible memory leak?

gariac March 08, 2019 08:08PM

Re: Possible memory leak?

wkbrad March 11, 2019 04:37PM

Re: Possible memory leak?

Anoop Alias March 12, 2019 09:56AM

Re: Possible memory leak?

Maxim Dounin March 12, 2019 10:40AM

Re: Possible memory leak?

Anoop Alias March 12, 2019 11:00AM

Re: Possible memory leak?

Maxim Dounin March 12, 2019 11:48AM

Re: Possible memory leak?

wkbrad March 12, 2019 02:09PM

Re: Possible memory leak?

Maxim Dounin March 12, 2019 09:58PM

Re: Possible memory leak?

Peter Booth via nginx March 13, 2019 01:44AM

Re: Possible memory leak?

Anoop Alias March 13, 2019 01:54AM

Re: Possible memory leak?

wkbrad March 20, 2019 06:41PM

Re: Possible memory leak?

Maxim Dounin March 21, 2019 09:46AM

Re: Possible memory leak?

Maxim Dounin March 21, 2019 09:48AM

Re: Possible memory leak?

wkbrad March 21, 2019 11:29AM

Re: Possible memory leak?

Maxim Dounin March 21, 2019 02:18PM

Re: Possible memory leak?

wkbrad March 21, 2019 05:55PM

Re: Possible memory leak?

Maxim Dounin March 25, 2019 08:40AM

Re: Possible memory leak?

wkbrad March 27, 2019 02:54PM

Re: Possible memory leak?

Maxim Dounin March 27, 2019 04:26PM

Re: Possible memory leak?

gariac March 13, 2019 01:58AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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