Take the 2-minute tour ×

So I look at avaliable to me servers load

enter image description here

and see that some other user has created some really ram intensive app that kills my server hosting abileties. I wonder what is bash command to get top 5 most ram using applications n my server. How would such command look like?

share|improve this question
add comment

2 Answers

up vote 7 down vote accepted

You can use ps:

ps axo pid,args,pmem,rss,vsz --sort -pmem,-rss,-vsz | head -n 5
share|improve this answer
add comment

Run top. Press O to change the sort order, and Q for RESident memory.

share|improve this answer
add comment

Your Answer


