Friday, June 17, 2016

Spring Boot thread dump script

If you're using Spring Boot and creating an `application.pid`, you can create the following script to dump threads:

jstack `cat application.pid` > thread_dump.`date +%Y%m%d_%H%M%S`

No comments:

Post a Comment