Skip to content

Instantly share code, notes, and snippets.

@jcabmora
Created October 23, 2019 20:17
Show Gist options
  • Save jcabmora/1e13cafd8459b123aa5e4a161f47c136 to your computer and use it in GitHub Desktop.
Save jcabmora/1e13cafd8459b123aa5e4a161f47c136 to your computer and use it in GitHub Desktop.
When that service uses too much CPU...
while true; do top -b -p 12472 -n1 | tail -1 >> cpuhog.log ; sleep 1; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment