Skip to content

Instantly share code, notes, and snippets.

@kofrasa
Last active May 21, 2018 13:02
Show Gist options
  • Save kofrasa/84465b4da20e569f0732 to your computer and use it in GitHub Desktop.
Save kofrasa/84465b4da20e569f0732 to your computer and use it in GitHub Desktop.
Linux System Performance

Find the processes consuming the most memory

1. Compute memory usage and sort

ps aux  | awk '{print $6/1024 " MB\t\t" $11}'  | sort -nr | head -10
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -10

2. Use top

From inside top you can try the following:

  1. Press SHIFT+f
  2. Press the Letter corresponding to %MEM
  3. Press ENTER

https://danielmiessler.com/study/tcpdump/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment