Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question

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

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

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

2 Answers 2

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.

share|improve this answer

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.