Skip to content

Instantly share code, notes, and snippets.

@jay-lannister
Last active February 28, 2020 16:58
Show Gist options
  • Save jay-lannister/45b54bf7d26753639482 to your computer and use it in GitHub Desktop.
Save jay-lannister/45b54bf7d26753639482 to your computer and use it in GitHub Desktop.
check memory usages
ps -eF --sort -rss |head -n 5
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5
ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 5
# run top
# press M to sort by physical memory usage (RES column).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment