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

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
1  
Install htop and recheck, htop gives better output than the ordinary top –  Ahmadgeo Mar 11 at 19:42
1  
$apt-get install htop –  Ahmadgeo Mar 11 at 19:43
    
@Ahmadgeo Thanks I'll give it a look. –  UzumakiDev Mar 11 at 20:04
1  
You may also want to have a look on this video <training.linuxfoundation.org/free-linux-training/…; –  Ahmadgeo Mar 11 at 20:10
1  
Sorry; here is the correct one training.linuxfoundation.org/free-linux-training/… –  Ahmadgeo Mar 11 at 20:18

1 Answer 1

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.

http://www.newrelic.com/

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 at 20:05

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.