Skip to content

Instantly share code, notes, and snippets.

@riuvshin
Last active December 17, 2018 10:26
Show Gist options
  • Save riuvshin/bffb8b1fe17acbbe05633055494f66d6 to your computer and use it in GitHub Desktop.
Save riuvshin/bffb8b1fe17acbbe05633055494f66d6 to your computer and use it in GitHub Desktop.
tdump
pid=$1
count=$2
timeout=$3
for i in {1..$count}
do
jstack $pid > /tmp/thread_dump_$(date +%s)
sleep $timeout
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment