Skip to content

brendancicchi/collect-thread-dumps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

collect-thread-dumps

Summary

Helper script which can be used on any JVM process to gather repeated collections of thread dumps. The script leverages the jcmd utility which is bundled with the JDK and falls back to using kill -3 if jcmd is not found on the PATH.

Syntax

./collect-thread-dumps.sh <pid> <interval> <count>

Example

Goal: Collect thread dumps every 5 seconds for 5 minutes for the Java process with id 5452

./collect-thread-dumps.sh 5452 5 60

History

This script merges the multidump.sh and multidump-alt.sh scripts used by DataStax as well as adding some additional error handling to make thread dump collection a simpler process.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages