Bug#485413: apache2: Apache crashes system due to exessive memory allocation
Package: apache2
Version: 2.2.8-4
Severity: critical
Justification: breaks the whole system
And the begins to consume all available memory within about 6 hours.
This is verified on 4 extremly similar setup apaches on Debian Lenny
amd64.
Using pmap on one of the currently bigger apache processes I see that
it has allocated quite much ram:
00002b93c3833000 5848 r-x-- 0000000000000000 008:00001 libphp5.so
0000000000663000 359560 rw--- 0000000000663000 000:00000 [ anon ]
mapped: 549860K writeable/private: 361796K shared: 604K
(last lines form from pmap -d 2464 | sort -n -k 2)
The question is how to debug that problem, find out which modules
allocates that much memory (most likely php, but where is the evidence?)
and why it allocates so much memory.
-- Package-specific info:
List of enabled modules from 'apache2 -M':
alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi dir env mime negotiation php5
rewrite setenvif ssl status
-- System Information:
Debian Release: lenny/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.24-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Versions of packages apache2 depends on:
ii apache2-mpm-prefork 2.2.8-4 Traditional model for Apache HTTPD
apache2 recommends no packages.
-- no debconf information
Reply to: