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'm running a rails stack on ubuntu.

When I ps -AF, I get a descriptive process name set by the apache module like

00:00:43 Rails: /var/www...

which is really helpful in diagnosing load issues.

But when I top, the same process show up simply as

ruby

Is there any way to get the ps -AF process name in top?

share|improve this question

3 Answers 3

up vote 39 down vote accepted

While top is running, you can press c to toggle between showing the process name and the command line. To remember the toggle state for next time, press W to save the current configuration to ~/.toprc.

share|improve this answer
    
thanks, this makes my life so much easier! –  Ben K. May 18 '10 at 16:14

This is more of a general suggestion, than an answer:

Try out htop. It shows the full process name by default and I think it's much easier to use.

share|improve this answer
1  
great! much better than the raw 'top'. thanks a lot! –  Siwei Shen May 17 '13 at 0:32

When running top type c to toggle command line/process.

share|improve this answer

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.