Created
December 18, 2017 21:53
-
-
Save Olefine/0a1e1383fd2ce513745a7232055cfc40 to your computer and use it in GitHub Desktop.
top memory
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ps aux | awk '{mem[$11]+=int($6/1024)}; {cpuper[$11]+=$3};{memper[$11]+=$4}; END {for (i in mem) {print cpuper[i]"% ",memper[i]"% ",mem[i]" MB ",i}}' | sort -k3nr | head -n 5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment