Class ThreadDump
java.lang.Object
org.apache.solr.crossdc.manager.consumer.ThreadDump
A convenience class for getting a thread dump.
Copy of the code in
https://github.com/dropwizard/metrics/blob/release/5.0.x/metrics-jvm/src/main/java/io/dropwizard/metrics5/jvm/ThreadDump.java
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddump(boolean lockedMonitors, boolean lockedSynchronizers, OutputStream out) Dumps all the threads' current information, optionally including synchronization, to an output stream.voiddump(OutputStream out) Dumps all the threads' current information, including synchronization, to an output stream.
-
Constructor Details
-
ThreadDump
-
-
Method Details
-
dump
Dumps all the threads' current information, including synchronization, to an output stream.- Parameters:
out- an output stream
-
dump
Dumps all the threads' current information, optionally including synchronization, to an output stream.Having control over including synchronization info allows using this method (and its wrappers, i.e. ThreadDumpServlet) in environments where getting object monitor and/or ownable synchronizer usage is not supported. It can also speed things up.
- Parameters:
lockedMonitors- dump all locked monitors if truelockedSynchronizers- dump all locked ownable synchronizers if trueout- an output stream
-