Interface JVMThreadStats
- All Superinterfaces:
Stats
A Stats interface, to expose the monitoring information
about the thread system of the JVM.
- Since:
- 8.1
-
Method Summary
Modifier and TypeMethodDescriptionReturns a comma separated list of all live thread idsReturns the CPU time for the current thread in nanoseconds, if CPU time measurement is enabled.Returns the current number of live daemon threadsReturns a comma separated list of thread ids that are monitor deadlockedReturns the peak live thread count, since the JVM started or the peak was resetReturns the current number of live daemon and non-daemon threadsReturns the total number of threads created and also started since the JVM startedMethods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
-
Method Details
-
getThreadCount
CountStatistic getThreadCount()Returns the current number of live daemon and non-daemon threads- Returns:
- CountStatistic current number of live threads
-
getPeakThreadCount
CountStatistic getPeakThreadCount()Returns the peak live thread count, since the JVM started or the peak was reset- Returns:
- CountStatistic peak live thread count
-
getTotalStartedThreadCount
CountStatistic getTotalStartedThreadCount()Returns the total number of threads created and also started since the JVM started- Returns:
- CountStatistic total number of threads started
-
getDaemonThreadCount
CountStatistic getDaemonThreadCount()Returns the current number of live daemon threads- Returns:
- CountStatistic current number of live daemon threads
-
getAllThreadIds
StringStatistic getAllThreadIds()Returns a comma separated list of all live thread ids- Returns:
- StringStatistic live thread ids
-
getCurrentThreadCPUTime
CountStatistic getCurrentThreadCPUTime()Returns the CPU time for the current thread in nanoseconds, if CPU time measurement is enabled. Else returns -1- Returns:
- CountStatistic CPU time for the current thread
-
getMonitorDeadlockedThreads
StringStatistic getMonitorDeadlockedThreads()Returns a comma separated list of thread ids that are monitor deadlocked- Returns:
- StringStatistic
-