Software >> OS >> Unix >> Solaris >> How to list physical memory usage per process for all users

 

# prstat -s rss -a

-s rss => sort by rss (resident set size)
-a => all users

 or

# ps -ef -o rss,pid,comm | sort -rnk 1

- list all processes, showing columns rss,pid and comm and then sorts by the first field (rss) in reverse order, treating the sort key as numeric value (rather than string)