public class ThreadDumper extends Object
Helper class to debug hanging or uncleared threads.
Constructor and Description |
---|
ThreadDumper(long interval)
Dump all running threads on a regular base.
|
Modifier and Type | Method and Description |
---|---|
static String |
getThreadDump(boolean dumpDaemon)
Get a string dump all running threads.
|
public ThreadDumper(long interval)
Dump all running threads on a regular base.
interval
- interval in secondspublic static String getThreadDump(boolean dumpDaemon)
Get a string dump all running threads.
dumpDaemon
- true if daemon processes should be dumped tooCopyright © 2023. All rights reserved.