Package org.nuxeo.runtime.management.jvm
Class ThreadDeadlocksDetector
java.lang.Object
org.nuxeo.runtime.management.jvm.ThreadDeadlocksDetector
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static interface
static interface
protected class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ThreadMXBean
protected final ThreadDeadlocksDetector.Printer
protected Timer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
cancel()
long[]
dump
(long[] lockedIds) static void
killThreads
(Set<Long> ids) protected static ThreadGroup
rootGroup
(ThreadGroup group) void
schedule
(long period, ThreadDeadlocksDetector.Listener listener)
-
Field Details
-
timer
-
mgmt
-
printer
-
-
Constructor Details
-
ThreadDeadlocksDetector
public ThreadDeadlocksDetector()
-
-
Method Details
-
dump
- Throws:
IOException
-
detectThreadLock
public long[] detectThreadLock() -
schedule
-
cancel
public void cancel() -
killThreads
-
getThreads
-
rootGroup
-