Package: apache2.2-common
Version: 2.2.22-13+deb7u1
Severity: normal

Dear Maintainer,

Recently we received report that apache2 reload in logrotate can lead to
memory leak. Here is the reproduce steps:

root@r-4-VM:~# for i in `ps -eo comm,pid|awk '$1=="apache2" { print $2
}'`; do pmap $i|tail -n 1; done
total 85680K
total 84916K
total 309108K
total 309108K

root@r-4-VM:~# i=0; while [ $i -lt 365 ] ; do /etc/init.d/apache2 reload
2>1 > /dev/null;
sleep 1; i=$(($i+1)); done
root@r-4-VM:~# for i in `ps -eo comm,pid|awk '$1=="apache2" { print $2 }
'`;
do pmap $i|tail -n 1; done
total 120552K
total 344576K
total 344576K
total 121148K

Currently we have logrotate set to 1 day, means only reload for 365 days,
memory usage can increase 120M. We're using apache2 as small http server in
an
small VM, so that's really lot to us. We have to restart it every month or
so.

Could you help to take a look at this?

Thank you!

 -- Package-specific info: List of enabled modules from 'apache2
-M': total 344576K alias auth_basic auth_digest authn_file authz_default

  authz_groupfile authz_host authz_user autoindex cgid deflate dir
  env mime negotiation reqtimeout rewrite setenvif ssl status

-- System Information:
Debian Release: 7.5
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.2.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_US.UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages apache2 depends on:
ii  apache2-mpm-worker  2.2.22-13+deb7u1
ii  apache2.2-common    2.2.22-13+deb7u1

apache2 recommends no packages.

apache2 suggests no packages.

Versions of packages apache2.2-common depends on:
ii  apache2-utils  2.2.22-13+deb7u1
ii  apache2.2-bin  2.2.22-13+deb7u1
ii  lsb-base       4.1+Debian8+deb7u1
ii  mime-support   3.52-1
ii  perl           5.14.2-21+deb7u1
ii  procps         1:3.3.3-3

Versions of packages apache2.2-common recommends:
ii  ssl-cert  1.0.32

Versions of packages apache2.2-common suggests:
pn  apache2-doc                             <none>
pn  apache2-suexec | apache2-suexec-custom  <none>
ii  links [www-browser]                     2.7-1+deb7u1

-- no debconf information

Reply via email to