Skip to content

Instantly share code, notes, and snippets.

@dannysheehan
Created February 18, 2014 23:40
Show Gist options
  • Save dannysheehan/9082958 to your computer and use it in GitHub Desktop.
Save dannysheehan/9082958 to your computer and use it in GitHub Desktop.
Determine what processes are causing mystery load on a server
top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment