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

In the past, all of our servers have automatically shown command arguments passed to rake when we view them in top. For example:

enter image description here

But on this particular server, we get this instead (picture is top running, showing the rake command, but not showing any of the arguments that had been passed to rake):

enter image description here

Both servers are running Ubuntu (though the server without rake commands is a newer flavor of ubuntu). Both run rake through ruby enterprise edition (as powered by rvm). Can't seem to find any documentation on how top chooses what to show in the "command" column, other than the obvious "more data/less data" toggle (all screenshots are shown with the extra data enabled.

Anyone encountered anything similar to this?

share|improve this question
I've ascertained that ps exhibits the same problem on this server as top. Neither will show arguments given to rake. The search for an explanation continues. – wbharding Jan 14 '13 at 19:02
I now understand the problem to be that /proc/[pid]/cmdline (which controls what is shown by top and ps) is not giving the same output on the two servers. I've posted an updated and more detailed question here… – wbharding Feb 14 '13 at 22:25

Use top -c to make top show arguments. Alternatively, just press c in a running top to toogle this.

share|improve this answer
Sorry, I should have been more clear: the screenshots I showed were after toggling the output with "c". They still don't have the arguments for rake. – wbharding Dec 11 '12 at 17:52

Does the output of alias show an alias for top?

There is no environment variable that I know about that will change the default behavior of top, as VIRT and CPULOOP do not affect this.

What is the content of /etc/toprc? - that is a system wide configuration file (there also is a personal config file, but I doubt that you would not know about it)

I would suggest creating/changing /etc/toprc to get the output you want. And get rid of an alias if one exists.

share|improve this answer

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.