jrockit.management
Interface ThreadMXBean

All Superinterfaces:
java.lang.management.ThreadMXBean

public interface ThreadMXBean
extends java.lang.management.ThreadMXBean

This interface exposes thread system-specific information. It is a JRockit-specific extension of java.lang.management.ThreadMXBean.

Author:
Marcus Hirt

Method Summary
 int getNumberOfMonitorDeadlockedThreads()
          Counts the number of threads that are in deadlock waiting to acquire object monitors.
 java.lang.String getThreadStackDump()
          Returns a string representing the thread stack dump you normally get by pressing ctrl-break.
 
Methods inherited from interface java.lang.management.ThreadMXBean
findMonitorDeadlockedThreads, getAllThreadIds, getCurrentThreadCpuTime, getCurrentThreadUserTime, getDaemonThreadCount, getPeakThreadCount, getThreadCount, getThreadCpuTime, getThreadInfo, getThreadInfo, getThreadInfo, getThreadInfo, getThreadUserTime, getTotalStartedThreadCount, isCurrentThreadCpuTimeSupported, isThreadContentionMonitoringEnabled, isThreadContentionMonitoringSupported, isThreadCpuTimeEnabled, isThreadCpuTimeSupported, resetPeakThreadCount, setThreadContentionMonitoringEnabled, setThreadCpuTimeEnabled
 

Method Detail

getThreadStackDump

java.lang.String getThreadStackDump()
Returns a string representing the thread stack dump you normally get by pressing ctrl-break.

Returns:
the thread stack dump

getNumberOfMonitorDeadlockedThreads

int getNumberOfMonitorDeadlockedThreads()
Counts the number of threads that are in deadlock waiting to acquire object monitors. That is, threads that are blocked waiting to enter a synchronization block or waiting to reenter a synchronization block after an Object.wait call, where each thread owns one monitor while trying to obtain another monitor already held by another thread in a cycle.

Returns:
the number of threads involved in deadlocked chains.


Copyright © 2004-2005 BEA Systems Inc.