public interface ThreadMXBean extends ThreadMXBean
ThreadMXBean
. It publishes
APIs specific to com.ibm.lang.management
, exposing additional
information than what the standard ThreadMXBean does.Modifier and Type | Method and Description |
---|---|
ExtendedThreadInfo[] |
dumpAllExtendedThreads(boolean lockedMonitors,
boolean lockedSynchronizers)
API method that fetches an array of ExtendedThreadInfo objects corresponding to
threads in the virtual machine during the time it is invoked.
|
long |
getNativeThreadId(long threadId)
Find the native (operating system assigned) thread identifiers corresponding
to a unique TID (as returned by java/lang/Thread.getId()).
|
long[] |
getNativeThreadIds(long[] threadIDs)
Fetches an array of the native (operating system assigned) identifiers
corresponding to unique TIDs (as returned by java/lang/Thread.getId()) specified to it.
|
dumpAllThreads, getCurrentThreadAllocatedBytes, getThreadAllocatedBytes, getThreadAllocatedBytes, getThreadCpuTime, getThreadInfo, getThreadUserTime, isThreadAllocatedMemoryEnabled, isThreadAllocatedMemorySupported, setThreadAllocatedMemoryEnabled
dumpAllThreads, findDeadlockedThreads, findMonitorDeadlockedThreads, getAllThreadIds, getCurrentThreadCpuTime, getCurrentThreadUserTime, getDaemonThreadCount, getPeakThreadCount, getThreadCount, getThreadCpuTime, getThreadInfo, getThreadInfo, getThreadInfo, getThreadInfo, getThreadInfo, getThreadUserTime, getTotalStartedThreadCount, isCurrentThreadCpuTimeSupported, isObjectMonitorUsageSupported, isSynchronizerUsageSupported, isThreadContentionMonitoringEnabled, isThreadContentionMonitoringSupported, isThreadCpuTimeEnabled, isThreadCpuTimeSupported, resetPeakThreadCount, setThreadContentionMonitoringEnabled, setThreadCpuTimeEnabled
getObjectName
long[] getNativeThreadIds(long[] threadIDs) throws IllegalArgumentException, SecurityException
threadIDs
- An array of thread identifiers that the user wishes to obtain
native thread identifiers for.IllegalArgumentException
- is thrown if any of the thread identifiers passed is invalid (<=0).SecurityException
- is thrown if the caller does not have sufficient permissions
(ManagementPermission("monitor"))long getNativeThreadId(long threadId) throws IllegalArgumentException, SecurityException
threadId
- The Java runtime allocated thread identifier.IllegalArgumentException
- is thrown if the thread identifier passed is invalid (<=0).SecurityException
- is thrown if the caller does not have sufficient permissions
(ManagementPermission("monitor"))ExtendedThreadInfo[] dumpAllExtendedThreads(boolean lockedMonitors, boolean lockedSynchronizers) throws SecurityException, UnsupportedOperationException, InternalError
lockedMonitors
- boolean indication of whether or not information on all
currently locked object monitors is to be included in the
returned arraylockedSynchronizers
- boolean indication of whether or not information on all
currently locked ownable synchronizers is to be included in
the returned arraySecurityException
- is thrown if the caller does not have sufficient permissions
(ManagementPermission("monitor"))UnsupportedOperationException
- is thrown if the JVM does not support monitoring
object monitor usage or ownable synchronizer usage, even as it has been specified.InternalError
- is thrown in case an error occurs while fetching thread information,
typically, an internal error resulting from an inconsistency in the class library.Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2024 IBM Corp. and others.