Interface JVMThreadStats
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringStatisticgetAllThreadIds()Returns a comma separated list of all live thread idsCountStatisticgetCurrentThreadCPUTime()Returns the CPU time for the current thread in nanoseconds, if CPU time measurement is enabled.CountStatisticgetDaemonThreadCount()Returns the current number of live daemon threadsStringStatisticgetMonitorDeadlockedThreads()Returns a comma separated list of thread ids that are monitor deadlockedCountStatisticgetPeakThreadCount()Returns the peak live thread count, since the JVM started or the peak was resetCountStatisticgetThreadCount()Returns the current number of live daemon and non-daemon threadsCountStatisticgetTotalStartedThreadCount()Returns the total number of threads created and also started since the JVM started-
Methods inherited from interface org.glassfish.j2ee.statistics.Stats
getStatistic, getStatisticNames, getStatistics
-
-
-
-
Method Detail
-
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
-
-