httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gerald <>
Subject [users@httpd] Apache Daemon; Which customer is memory hog?
Date Tue, 14 Dec 2004 18:09:13 GMT

Long time apache administrator, first time to post to the apache users
mailing list running apache+mod_ssl-1.3.33+2.8.22 on this problem
FreeBSD 4.8 machine. Short of tracing processes, is there anything
within apache to log which PIDs on a machine are serving which site
(%{PID})? Perhaps I could make a log format that includes how big the
apache process was when it terminated.

I've got a customer running a shared server with many sites on it and I
don't know which site is creating the huge apache processes. Is it the
PHP happy site that I already had to increase the php.ini memory_limit
for? Is it the online radio station hosting 30 MB MP3 files. ...or is it
the frequently abused forums on yet another site.

This machine probably has 30 sites and 3 prime candidates as the
memory hogs. ("large apache httpd memory processes" is too generic on
google/docs to get anything useful.)

top -ores first few lines:

89166 www              18   0 29500K 22384K lockf    0:24  0.00%  0.00% httpd
90678 www              18   0 29732K 22132K lockf    0:28  0.00%  0.00% httpd
90684 www               2   0 29616K 22068K sbwait   0:21  0.00%  0.00% httpd
89167 www               2   0 29636K 21944K sbwait   0:24  0.24%  0.24% httpd

Mem: 317M Active, 34M Inact, 111M Wired, 14M Cache, 60M Buf, 15M Free
Swap: 2048M Total, 176M Used, 1872M Free, 8% Inuse

None of the apache processes are below 10 MB at the moment and the majority
are > 25 MB.

Thanks in advance for any suggestions/input.


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