Skip to content

Instantly share code, notes, and snippets.

@philz
Created February 12, 2013 21:20
Show Gist options
  • Save philz/4773497 to your computer and use it in GitHub Desktop.
Save philz/4773497 to your computer and use it in GitHub Desktop.
Draw depending graph of jstack/stacks debug servlet output
dot -Tpng -o out.png <(cat stacks.txt | awk '/^Thread/ { cur = $2 } /Blocked by/ { print "t"cur, "->", "t"$3 } BEGIN { print "digraph G {"} END { print "}" }')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment