Skip to content

Instantly share code, notes, and snippets.

@bobbyjam99-zz
Created June 2, 2015 12:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bobbyjam99-zz/8cb0de611b8f5a9f5d36 to your computer and use it in GitHub Desktop.
Save bobbyjam99-zz/8cb0de611b8f5a9f5d36 to your computer and use it in GitHub Desktop.
/usr/java/jdk1.7.0_72/bin/jstack 12625 > threaddump_12625.txt
ps auxww | grep ${MAIN_CLASS} | grep ${HOST} | grep ${DOMAIN} | grep -v grep | nawk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment