My CPU average usage is about 0.25 - 0.3.

Is there any way to find out from apache which sites/domains are taking up most of those resources?

I'm on CentOS

link|improve this question
2  
Would this be better on SF? – Larry Oct 31 '09 at 23:49
Don't want to nitpick, but CentOS is Linux, not Unix – Mark Henderson Mar 13 '10 at 9:55
feedback

migrated from superuser.com Nov 1 '09 at 9:33

This question came from our site for computer enthusiasts and power users.

2 Answers

But yes, it should be doable... apachetop might be a good place to start. Then you could try something like awstats. Or, you could maybe use suexec to have different sites run as different users, then compare the processes for each user in top.

If anyone knows a more direct way, I'd love to hear it.

link|improve this answer
feedback

You can enable apache2 mod_info ( http://httpd.apache.org/docs/2.0/mod/mod%5Finfo.html ), and monitor the most cpu-intensive requests.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown