Sunday, October 26, 2014

linux - Apache HTTPD process cumulative cpu time



How can I aggregate all Apache HTTPD processes' CPU time usage to be able to compare them with other running processes' (MySQL, Java, ...)? Or how much CPU time does HTTPD needs compared to MySQL for example?



"ps --cumulative", "top -S", "pidstat -T CHILD" does not help because cumulated cpu times only include exited child processes' time, and httpd processes are living quite long.




Is there an existing utility for this or I have to make one?


Answer



The Apache server status will show you the cumulative process time(s):



http://httpd.apache.org/docs/2.2/mod/mod_status.html


No comments:

Post a Comment

linux - How to SSH to ec2 instance in VPC private subnet via NAT server

I have created a VPC in aws with a public subnet and a private subnet. The private subnet does not have direct access to external network. S...