Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there any tool that can provide statistics about cpu-usage per virtual host? This way I can understand which is the website that causes 100% spikes in CPU usage. Thanks!

if this is not possible, can I setup apache differently? e.g. each virtualhost running under different user? is this viable or uses much more resources?

share|improve this question
add comment

1 Answer

There is no such capability in Apache itself.

You can log processing time of request ( noted as %D ) in some custom log and then dig averages and extremes (no CPU consumption accounted). <0.1s is unnoticeable >10s is unbearable according to w3c recommendations.

share|improve this answer
add comment

Your Answer

 
discard

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.