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?

link|improve this question

78% accept rate
feedback

3 Answers

up vote 16 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.

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

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

link|improve this answer
feedback

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.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

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