Class ThreadMonitor

java.lang.Object
de.hybris.platform.hac.facade.ThreadMonitor

public class ThreadMonitor extends Object
Example of using the java.lang.management API to dump stack trace and to perform deadlock detection.
Version:
%% 12/22/05
  • Constructor Details

    • ThreadMonitor

      public ThreadMonitor()
      Constructs a ThreadMonitor object to get thread information in the local JVM.
  • Method Details

    • threadDump

      public String threadDump()
      Prints the thread dump information to System.out.
      Returns:
      the thread dump information.
    • findDeadlock

      public String findDeadlock()
      Checks if any threads are deadlocked. If any, print the thread dump information.