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.

I recently came across a screenshot that looks to be using the "top" command, but it is showing a lot more in-depth info in terms of CPU usage:

enter image description here

The program shows detail down to which plugin in Wordpress is taking up all the resources. How is this possible?

share|improve this question
add comment

2 Answers

The tool used is htop. And advanced top.

In htop you could scroll, so it is possible to show the full process name, with php scripts, depending on your webserver

share|improve this answer
    
Sorry guys, I've had to clear the comment list on this post. There were a lot of flags coming in over it (more than I ever would have imagined). Please re-create your comment thread with a bit less.. passion... if possible. –  Mark Henderson Aug 22 '11 at 3:29
add comment

What's more in depth about that output than what is obtainable from regular top? Good programs will adapt their command line to provide more information about what they're doing (examples include resque and readproctitle), and top will pick that up and display it if you ask it to (the c command).

share|improve this answer
    
The screenshot shows only a part of the htop output. If you want to know whats more advanced, use google –  Thomas Berger Aug 21 '11 at 1:55
1  
That's right; pressing "c" in usual Linux top is quite useful. ) –  poige Aug 21 '11 at 7:09
    
The reason I made mention of this output is because it usually just shows that litespeed or PHP is causing CPU usage. However, this screenshot shows, not only the fact that its PHP, but its a particular plugin in Wordpress. –  brant Aug 22 '11 at 21:32
    
It's actually just showing you the path to the PHP file that was requested, not anything special (it just happens that most of the PHP processes running at that moment were from a particular wordpress plugin). My answer explains how this is done. –  womble Aug 22 '11 at 22:52
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.