Package org.glassfish.admin.monitor.jvm
Class JVMThreadSystemStatsProvider
- java.lang.Object
-
- org.glassfish.admin.monitor.jvm.JVMThreadSystemStatsProvider
-
@AMXMetadata(type="thread-system-mon", group="monitoring") @ManagedObject @Description("JVM Thread System Statistics") public class JVMThreadSystemStatsProvider extends ObjectBase class providing the MBean to monitor JVM thread system statisticsThe MBean will of the format
amx:pp=/mon/server-mon[server],type=thread-system-mon,name=jvm/thread-systemand can be enabled by turning the Jvm monitoring level in the admin console to LOW- Since:
- v2
-
-
Constructor Summary
Constructors Constructor Description JVMThreadSystemStatsProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.glassfish.external.statistics.StringStatisticgetAllThreadIds()Returns all live thread IDsorg.glassfish.external.statistics.CountStatisticgetCpuUsage()org.glassfish.external.statistics.CountStatisticgetCurrentThreadCpuTime()Returns the total CPU time for the current thread in nanosecondsorg.glassfish.external.statistics.CountStatisticgetCurrentThreadUserTime()Returns the CPU time that the current thread has executed in user mode in nanosecondsorg.glassfish.external.statistics.CountStatisticgetDaemonThreadCount()Returns the current number of live daemon threadsorg.glassfish.external.statistics.StringStatisticgetDeadlockedThreads()Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizersorg.glassfish.external.statistics.StringStatisticgetMonitorDeadlockedThreads()Finds cycles of threads that are in deadlock waiting to acquire object monitorsorg.glassfish.external.statistics.CountStatisticgetPeakThreadCount()Returns the peak live thread count since the Java virtual machine started or peak was resetorg.glassfish.external.statistics.CountStatisticgetThreadCount()Returns the current number of live threads including both daemon and non-daemon threadsorg.glassfish.external.statistics.CountStatisticgetTotalStartedThreadCount()Returns the total number of threads created and also started since the Java virtual machine started
-
-
-
Method Detail
-
getAllThreadIds
@ManagedAttribute(id="allthreadids") @Description("Returns all live thread IDs") public org.glassfish.external.statistics.StringStatistic getAllThreadIds()Returns all live thread IDs- Returns:
- a
StringStatisticwith a comma separated list of all live thread IDs
-
getCurrentThreadCpuTime
@ManagedAttribute(id="currentthreadcputime") @Description("Returns the total CPU time for the current thread in nanoseconds") public org.glassfish.external.statistics.CountStatistic getCurrentThreadCpuTime()Returns the total CPU time for the current thread in nanoseconds- Returns:
- a
CountStatisticwith the time in nanoseconds
-
getCurrentThreadUserTime
@ManagedAttribute(id="currentthreadusertime") @Description("Returns the CPU time that the current thread has executed in user mode in nanoseconds") public org.glassfish.external.statistics.CountStatistic getCurrentThreadUserTime()Returns the CPU time that the current thread has executed in user mode in nanoseconds- Returns:
- a
CountStatisticwith the time in nanoseconds
-
getDaemonThreadCount
@ManagedAttribute(id="daemonthreadcount") @Description("Returns the current number of live daemon threads") public org.glassfish.external.statistics.CountStatistic getDaemonThreadCount()Returns the current number of live daemon threads- Returns:
- a
CountStatisticwith thenumber of threads
-
getDeadlockedThreads
@ManagedAttribute(id="deadlockedthreads") @Description("Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizers") public org.glassfish.external.statistics.StringStatistic getDeadlockedThreads()Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizers- Returns:
- A
StringStatisticwith a comma separated list of deadlocked threads or the string "None of the threads are deadlocked." if there are no deadlocked threads
-
getMonitorDeadlockedThreads
@ManagedAttribute(id="monitordeadlockedthreads") @Description("Finds cycles of threads that are in deadlock waiting to acquire object monitors") public org.glassfish.external.statistics.StringStatistic getMonitorDeadlockedThreads()Finds cycles of threads that are in deadlock waiting to acquire object monitors- Returns:
- A
StringStatisticwith a comma separated list of deadlocked threads or the string "None of the threads are monitor deadlocked." if there are no deadlocked threads
-
getPeakThreadCount
@ManagedAttribute(id="peakthreadcount") @Description("Returns the peak live thread count since the Java virtual machine started or peak was reset") public org.glassfish.external.statistics.CountStatistic getPeakThreadCount()Returns the peak live thread count since the Java virtual machine started or peak was reset- Returns:
- a
CountStatisticwith the highest number of threads
-
getThreadCount
@ManagedAttribute(id="threadcount") @Description("Returns the current number of live threads including both daemon and non-daemon threads") public org.glassfish.external.statistics.CountStatistic getThreadCount()Returns the current number of live threads including both daemon and non-daemon threads- Returns:
- A
CountStatisticwith the current number of threads
-
getTotalStartedThreadCount
@ManagedAttribute(id="totalstartedthreadcount") @Description("Returns the total number of threads created and also started since the Java virtual machine started") public org.glassfish.external.statistics.CountStatistic getTotalStartedThreadCount()Returns the total number of threads created and also started since the Java virtual machine started- Returns:
- a
CountStatisticwith the total number of threads
-
getCpuUsage
@ManagedAttribute(id="cpuusage") @Description("Returns the CPU usage in percent.") public org.glassfish.external.statistics.CountStatistic getCpuUsage()
-
-