资 源 简 介
jThreadWatchDog
is simple tool for detect and log longly blocked threads in Java programs.
Sometimes, in complex systems goes threads to crazy synchronization dependencies that make whole system slow and unusable...
Produced log:
23.03.2011 22:40:15 - thread 8 "PoorThread" is blocked more than 5155ms!
"PoorThread" Id=8 BLOCKED on java.lang.Object@51a19458 owned by "main" Id=1
at cz.karry.jtw.tests.LockedThreads$1.run(LockedThreads.java:20)
- blocked on java.lang.Object@51a19458
at java.lang.Thread.run(Thread.java:619)
blocked by:
"main" Id=1 TIMED_WAITING on java.lang.Object@31b5998f
at java.lang.Object.wait(Native Method)
- waiting on java.lang.Object@31b5998f
at cz.karry.jtw.tests.LockedThreads.main(LockedThreads.java:35)
- locked java.lang.Object@51a19458