httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benjamin <>
Subject [users@httpd] Memory consumption
Date Sun, 20 Apr 2008 10:24:16 GMT

I'm currently using Apache 2.2 under Debian Etch, with FastCGI/Suexec
and Php5.2 (all of these softwares have been installed as Debian
paquets, using aptitude).

The server is a Pentium 4 (3 Ghz) with 2 Gb of RAM. It serves a lot of
requests (about 30 to 35 per second, mainly weblogs and forums). This
server is only used to run Apache and Proftpd. I recently switched
from Apache 1.3 to Apache 2.2, from php4 to php5 and from Debian Sarge
to Debian Etch (from scratch).
Since this major update I am running into memory consumption problems
with Apache 2 :

CPU load is correct, however memory consumption is really high : some
Apache 2 processes can take up to 10 % of total RAM, which is more or
less equal to 200 Mb :

15641 www-data 20 0 31416 16m 864 S 1 0.8 1:32.64apache2
3673 www-data 20 0 422m 114m 2416 S 0 5.7 0:10.87apache2
4364 www-data 20 0 408m 107m 3076 S 0 5.3 0:10.12apache2
5771 www-data 20 0 599m 207m 2028 S 0 10.3 0:20.58apache2

Here is the result of the "free" command :
total used free shared buffers cached
Mem: 2070444 1979116 91328 0 111444 1012000
-/+ buffers/cache: 855672 1214772
Swap: 923696 0 923696

I monitored the used memory (which is given by "-/+ buffers/cache")
and sometimes I noticed peaks to 1.6 Gb (which is really high); it
wasn't the case before the update, with the same traffic load.

Activated modules are :

actions.load authn_file.load authz_host.load bw.load dir.conf
fastcgi.conf negotiation.load status.load
alias.load authz_default.load authz_user.load cgid.conf dir.load
fastcgi.load rewrite.load suexec.load
auth_basic.load authz_groupfile.load autoindex.load cgid.load env.load
mime.load setenvif.load

And here are a few details about the Apache 2 version I'm using :
Server version: Apache/2.2.3
Server built: Jan 27 2008 18:09:58
Server's Module Magic Number: 20051115:3
Server loaded: APR 1.2.7, APR-Util 1.2.7
Compiled using: APR 1.2.7, APR-Util 1.2.7
Architecture: 32-bit
Server MPM: Worker
threaded: yes (fixed thread count)
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/worker"
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D SUEXEC_BIN="/usr/lib/apache2/suexec"
-D DEFAULT_PIDLOG="/var/run/"
-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"

I really hope some of you will be able to help me, I thank you all in advance.

Have a nice day !

Benjamin SCHILZ

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message