Linux – How to get top command output to show rake arguments

linuxtopUbuntu

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?

Best Answer

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