Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My webstie is slow and I'm trying to troubleshoot the backend.

On an article page the cpu is hitting ~100%.

I'm using ubuntu/Apache and I'm viewing the stats using top.

The process hogging the cpu is giving me a pid number but is that just apache's number or can I track down a more specific process that is causing the cpu cycles?

If so how?

share|improve this question
Install htop and recheck, htop gives better output than the ordinary top – Ahmadgeo Mar 11 '14 at 19:42
$apt-get install htop – Ahmadgeo Mar 11 '14 at 19:43
@Ahmadgeo Thanks I'll give it a look. – UzumakiDev Mar 11 '14 at 20:04
You may also want to have a look on this video <…; – Ahmadgeo Mar 11 '14 at 20:10
Sorry; here is the correct one… – Ahmadgeo Mar 11 '14 at 20:18

I've used newrelic monitoring tool to trace specific resource consuming web requests. New relic monitors all apache transaction. It's a paid tool but you can use 14 days trial account.

share|improve this answer
I'm actually using relic already but I haven't really looked into it much, I didn't realize it was that thorough. – UzumakiDev Mar 11 '14 at 20:05

Your Answer


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.