Class EDTWatchDog


  • public class EDTWatchDog
    extends Object
    Monitors the EDT and dumps stacktraces for all threads to the log, if it detects a hang.
    Author:
    Hendrik Schreiber
    • Constructor Detail

      • EDTWatchDog

        public EDTWatchDog()
    • Method Detail

      • start

        public void start()
      • isEDTHanging

        public boolean isEDTHanging()
      • dumpAllStackTracesViaMXBean

        public static String dumpAllStackTracesViaMXBean()
        Dumps all stack traces into a string using info from ThreadMXBean.
        Returns:
        full thread dump, incl. monitor and lock info
      • dumpAllStackTraces

        public static String dumpAllStackTraces()
        Dumps all stack traces into a string using info from Thread.getAllStackTraces().
        Returns:
        full thread dump, monitor/lock info is missing
      • stop

        public void stop()
      • isRunning

        public boolean isRunning()