Sort unix processes by memory usage

Friday, December 28, 2012 , , , , 4 Comments

Below is a most simple command for Sorting Unix processes by highest memory usage:

ps -eo pmem,pid,pcpu,rss,vsz,time,args | sort -k 1 -r

4 comments:

  1. I’m glad I come across this column I found little good stuff and enjoyed reading them. It’s very informative and useful.

    www.n8fan.net

    ReplyDelete
  2. Add -n for numeric sorting.

    ps -eo pmem,pid,pcpu,rss,vsz,time,args | sort -k 1 -n -rps -eo pmem,pid,pcpu,rss,vsz,time,args | sort -k 1 -r -n

    ReplyDelete
  3. This website is mostly a stroll-by way of for all the info you needed about this and didn’t know who to ask. Glimpse right here, and you’ll undoubtedly discover it. best online casino

    ReplyDelete