Scenario / Questions

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?

Find below all possible solutions or suggestions for the above questions..

Suggestion: 1

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

Suggestion: 2

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.