Created
July 21, 2016 14:46
-
-
Save domargan/48650e2ff69d6e7b14d256c6d4cdbf05 to your computer and use it in GitHub Desktop.
Display how much memory a process is using
This file contains 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
while true; do ps -eo rss,pid,euser,args:100 --sort %mem | grep -v grep | grep -i $@ | awk '{printf $1/1024 "MB"; $1=""; print }' ; sleep 0.5s ; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment