What website is linked to what httpd process?

webguy

Verified User
Joined
Apr 13, 2005
Messages
41
Location
Best, Netherlands
I'm experiencing httpd process that take a lot of memory:

top - 13:12:42 up 49 min, 1 user, load average: 0.12, 0.07, 0.10
Tasks: 105 total, 1 running, 103 sleeping, 0 stopped, 1 zombie
Cpu(s): 7.0% us, 0.2% sy, 0.0% ni, 92.9% id, 0.0% wa, 0.0% hi, 0.0% si, 0.0% st
Mem: 1023248k total, 760440k used, 262808k free, 16532k buffers
Swap: 3096544k total, 48k used, 3096496k free, 306600k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
2567 apache 16 0 188m 163m 2936 S 0 16.3 0:21.33 httpd
8991 apache 15 0 49712 31m 2608 S 0 3.1 0:03.95 httpd
2203 apache 15 0 44268 26m 2936 S 0 2.6 0:12.69 httpd
8957 apache 16 0 39168 20m 2700 S 0 2.1 0:06.73 httpd
2202 apache 16 0 38736 20m 2760 S 0 2.1 0:17.42 httpd
2207 apache 16 0 38084 19m 2784 S 0 2.0 0:15.23 httpd
2564 apache 16 0 38044 19m 2792 S 0 2.0 0:12.89 httpd
2406 apache 16 0 37992 19m 2752 S 0 2.0 0:15.75 httpd
8989 apache 16 0 37744 19m 2736 S 0 2.0 0:04.50 httpd
8992 apache 16 0 37656 19m 2720 S 0 1.9 0:04.13 httpd
2403 apache 16 0 37380 19m 2780 S 13 1.9 0:17.77 httpd
8939 apache 16 0 37436 19m 2724 S 0 1.9 0:05.56 httpd
2407 apache 16 0 37112 18m 2768 S 0 1.9 0:15.58 httpd
8940 apache 16 0 37040 18m 2716 S 0 1.9 0:05.43 httpd
8995 apache 15 0 36400 18m 2700 S 0 1.8 0:04.19 httpd
2103 mail 16 0 28376 16m 876 S 0 1.6 0:02.02 clamd.exim
8941 apache 16 0 34216 16m 2744 S 0 1.6 0:03.62 httpd
2156 root 16 0 26304 15m 9872 S 0 1.6 0:00.23 httpd

Httpd process 2567 is taking 163m of memory here...

Is there a way to find out what website is linked to this process id?

Thanks,
Rene
 
Well maybe a memory leak...did you set maxrequestsperchild value to something like 5000 ?
 
Well maybe a memory leak...did you set maxrequestsperchild value to something like 5000 ?

These are the settings:

Timeout 300
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 5
MinSpareServers 5
MaxSpareServers 20
StartServers 8
MaxClients 450
MaxRequestsPerChild 1000
 
this is a question i'd like to see answered as well -- how do you trace from the httpd process to a particular user or account? that would help us immensly in troubleshooting.
 
Well, I already found the following. If you enable server-status in your httpd.conf you get a whole lot more information.
Like which process is linked to what Virtual Host.

But it didn't solve my memory usage issue yet...
 
Back
Top