Welcome! Log In Create A New Profile

Advanced

Re: Memory issue

Maxim Dounin
April 06, 2017 01:06PM
Hello!

On Thu, Apr 06, 2017 at 11:32:45AM -0400, JohnCarne wrote:

> cpanel stat generation cause thet nginx makes a lot of reload to grab new
> file descriptor... no issue on that
>
> Issue is nginx, I show you situation now with 2.58% used for 1 work, which
> is same value for others, but gloably, nginx uses now 2.58%, this number is
> increasing slowly at the rythm of nginx reloads asked...
>
>
> [root@web1 ~]# ps alx | grep nginx
> 5 99 711213 913692 20 0 3917936 3397132 ep_pol S ? 0:22
> nginx: worker process
> 5 99 711224 913692 20 0 3918128 3397300 ep_pol S ? 0:24
> nginx: worker process
> 5 99 711229 913692 20 0 3918392 3397456 ep_pol S ? 0:26
> nginx: worker process
> 5 99 711238 913692 20 0 3918128 3397228 ep_pol S ? 0:20
> nginx: worker process
> 5 99 711245 913692 20 0 3917936 3397144 ep_pol S ? 0:23
> nginx: worker process
> 5 99 711248 913692 20 0 3918096 3397296 ep_pol S ? 0:18
> nginx: worker process
> 5 99 711252 913692 20 0 3918392 3397392 ep_pol S ? 0:21
> nginx: worker process
> 5 99 711255 913692 20 0 3918128 3397132 - R ? 0:19
> nginx: worker process
> 5 99 711257 913692 20 0 3917580 3394632 ep_pol S ? 0:00
> nginx: cache manager process
> 0 0 767011 766950 20 0 112652 956 pipe_w S+ pts/2 0:00
> grep --color=auto nginx
> 5 0 913692 1 20 0 3917576 3396176 sigsus Ss ? 74:26
> nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf

Ok, so nginx master process grown to 3+ GB, and all workers are
mostly identical. So the memory is certainly consumed by the
master process. This may or may not be normal, depending on the
configuration used.

If you think that memory is consumed on configuration reloads, you
may want to provide "ps alx | grep nginx" after restarting nginx
(it is expected to be small), after one configuration reload (it
is expected to be larger due to another copy of the configuration
allocated) and after multiple configuration reloads (this will
demonstrate increased memory consumption, if any).

Note well: leaking memory on configuration reloads is a more or
less typical problem with various 3rd party modules. IIRC,
various versions of modsecurity were previously reported doing
this. As previously suggested, try without 3rd party modules to
see if it helps.

> Output of nginx -T is taking 100's of pages, i can't pu it here...

Well, not a problem. It simply limits possibility of others to help
you. Anyway, I suspect your problem is 3rd party modules, and I
don't think there is a room to investigate further before testing
if the problem persists without 3rd party modules.

[...]

> Indeed, we are all tired to do 3 upgrades /month

Note that the way you are asking others to help you is not likely
to attract many volunteers.

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

Memory issue

JohnCarne March 28, 2017 09:18PM

Re: Memory issue

JohnCarne March 28, 2017 10:18PM

Re: Memory issue

JohnCarne April 01, 2017 08:06AM

Re: Memory issue

JohnCarne April 02, 2017 12:35PM

Re: Memory issue

JohnCarne April 05, 2017 01:02AM

Re: Memory issue

Maxim Dounin April 05, 2017 10:32AM

Re: Memory issue

JohnCarne April 05, 2017 09:32PM

Re: Memory issue

Maxim Dounin April 06, 2017 11:24AM

Re: Memory issue

JohnCarne April 06, 2017 11:32AM

Re: Memory issue

Valentin V. Bartenev April 06, 2017 11:38AM

Re: Memory issue

JohnCarne April 06, 2017 11:39AM

Re: Memory issue

Lucas Rolff April 06, 2017 12:38PM

Re: Memory issue

Maxim Dounin April 06, 2017 01:06PM

Re: Memory issue

JohnCarne April 06, 2017 01:20PM

Re: Memory issue

B.R. via nginx April 06, 2017 03:52PM

Re: Memory issue

JohnCarne April 06, 2017 11:03PM

Re: Memory issue

Aleksandar Lazic April 06, 2017 06:52PM

Re: Memory issue

JohnCarne April 06, 2017 11:34PM

Re: Memory issue

JohnCarne April 06, 2017 11:57PM

Re: Memory issue

JohnCarne April 06, 2017 01:14AM

Re: Memory issue

Aleksandar Lazic April 06, 2017 06:00AM

Re: Memory issue

JohnCarne April 06, 2017 06:01AM

Re: Memory issue

Anoop Alias April 06, 2017 06:14AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 304
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready