Interface JVMThreadStats

All Superinterfaces:
Stats

public interface JVMThreadStats extends Stats
A Stats interface, to expose the monitoring information about the thread system of the JVM.
Since:
8.1
  • 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