Class ThreadDump

java.lang.Object
io.deephaven.util.thread.ThreadDump

public class ThreadDump
extends Object
A simple method for generating a Thread dump for this JVM; it doesn't do all the stuff that the kill -3 does; but you can easily run it from inside the JVM without having to send yourself a signal.
  • Constructor Details

    • ThreadDump

      public ThreadDump()
  • Method Details

    • threadDump

      public static void threadDump​(PrintStream out)
      Write a thread dump to the given PrintStream.
      Parameters:
      out - the output stream to write the thread dump of the current process to
    • threadDump

      public static void threadDump​(Logger logger)
      Write a thread dump to the provided logger.
      Parameters:
      logger - the logger to write the thread dump of the current process to
    • threadDump

      public static String threadDump()
      Generate a thread dump as a String.
      Returns:
      a String containing a thread dump of the curent process.