Mailing List Archive

[Bug 63687] High Memory usage after upgrade to 2.4.41
https://bz.apache.org/bugzilla/show_bug.cgi?id=63687

Renato Nogueira <renato.alves.nogueira@hotmail.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |renato.alves.nogueira@hotma
| |il.com

--- Comment #27 from Renato Nogueira <renato.alves.nogueira@hotmail.com> ---
(In reply to Ruediger Pluem from comment #7)
> (In reply to Curtis Wilson from comment #5)
> > I have run into the same issue on my servers, they are all Centos 6 and are
> > running cPanel. After the updates I found that I was getting constant issues
> > with memory use from apache in the worker mpm, most times when I would get
> > to them all httpd processes were using 8-12% memory, and causing the boxes
> > to overcommit.
> >
> > They updated to
> > Apache 2.4.41 (8/22/2019)
> > APR 1.7 (07/03/2019)
> > pcre is at 7.8-7
>
> So only httpd and APR where updated, correct? pcre remained unchanged?
>
> Like with the other reporter, can you just update Apache to isolate the
> component that causes this?

Hy Ruediger,

So, I was with the same problem here and i found this topic talking exactly
about. And the problem is aparently solved. I would like to explain the
situation in hope this help you to identify another causes like this.

Here comes the history..
My server is an Amazon Linux. The problematic httpd 2.4.41 has been compiled
from source because a security audit demanded. In that day I could not install
it through yum because the amazon linux repositories already had the last
apache version, i don´t remember exactly, but think the 2.4.34 and the security
reports suggested the 2.4.41. Ok this was the history.

So in your Comments #5 and #7 I was about to follow that you suggested but,
before I would like to test if my httpd's earlier version would work normally,
and i did.

I renamed my current apache directory, undo the custom settings and installed
the "previous" apache version throught yum. To my great surprise yum told me it
would install 2.4.41 version. I got a little confused but if yum gave me
2.4.41, that´s ok.

Ahh, I forgot to talk that the MPM chosen was the Event.

Imediately after install i check the version with httpd -V (After a few
corrections to make sure the httpd binary's running was that installed by yum)
and the result was as follow:

My Server with Memory Leakage:

Server version: Apache/2.4.41 (Unix)
Server built: Nov 6 2019 00:42:00
Server's Module Magic Number: 20120211:88
Server loaded: APR 1.7.0, APR-UTIL 1.6.1
Compiled using: APR 1.7.0, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)

The same server with memory leakage fixed after install httpd 2.4.41 throught
yum (Actally not the same server, the above server it´s a clone in homologation
enviroment):

Server version: Apache/2.4.41 ()
Server built: Oct 22 2019 22:59:04
Server's Module Magic Number: 20120211:88
Server loaded: APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)

Another thing maybe help you is that these two servers above were replicated
from another server's image, also running apache. This image has been used to
create about 10 servers and none of them have this problem. Here is the httpd
-V result from the root server:

Server version: Apache/2.4.34 ()
Server built: Aug 17 2018 22:14:33
Server's Module Magic Number: 20120211:79
Server loaded: APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: event
threaded: yes (fixed thread count)
forked: yes (variable process count)

Ok, as i see, the problematic guy was compiled using APR 1.7.0 and all of the
others using APR 1.6.3.

I didn´t did none of your suggested tests. Until now, my problem aparently
resolved, as 1 day has been passed and no memory leaks. In fact, memory
consumption didn´t even go up.

My server has 2 GB RAM, it runs just one application, with just one connection
for just one user, and with memory leakage, the server was freezing after about
5 hours of use.

The server with no problem, runs 5 httpd children, and each one consumes about
27MB each. The problematic starts with 3 children and the memory grows up to
ceiling.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63687] High Memory usage after upgrade to 2.4.41 [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63687

--- Comment #28 from nitop <it@netclusive.de> ---
It still doesn't look good here.
I've compiled "APR 1.6.3" and "APR-UTIL 1.6.1" with "Apache/2.4.41".

APR 1.6.3:
./configure --prefix=/usr/local/apr/
make
make install

APR-UTIL 1.6.1:
./configure --prefix=/usr/local/apr/ --with-apr=/usr/local/apr/
make
make install

Apache2:
--with-apr=/usr/local/apr/bin/apr-1-config
--with-apr-util=/usr/local/apr/bin/apu-1-config

--> High Memory usage again.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org
[Bug 63687] High Memory usage after upgrade to 2.4.41 [ In reply to ]
https://bz.apache.org/bugzilla/show_bug.cgi?id=63687

--- Comment #29 from nitop <it@netclusive.de> ---
apache2ctl -V
Server version: Apache/2.4.41 (Unix)
Server built: Dec 9 2019 08:44:12
Server's Module Magic Number: 20120211:88
Server loaded: APR 1.6.3, APR-UTIL 1.6.1
Compiled using: APR 1.6.3, APR-UTIL 1.6.1
Architecture: 64-bit
Server MPM: worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_SYSVSEM_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=256
-D HTTPD_ROOT=""
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/apache2/httpd.pid"
-D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
-D DEFAULT_ERRORLOG="logs/error_log"
-D AP_TYPES_CONFIG_FILE="/etc/apache2/mime.types"
-D SERVER_CONFIG_FILE="/etc/apache2/apache2.conf"

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org