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 Object
Base 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-system
and 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.StringStatistic
getAllThreadIds()
Returns all live thread IDsorg.glassfish.external.statistics.CountStatistic
getCpuUsage()
org.glassfish.external.statistics.CountStatistic
getCurrentThreadCpuTime()
Returns the total CPU time for the current thread in nanosecondsorg.glassfish.external.statistics.CountStatistic
getCurrentThreadUserTime()
Returns the CPU time that the current thread has executed in user mode in nanosecondsorg.glassfish.external.statistics.CountStatistic
getDaemonThreadCount()
Returns the current number of live daemon threadsorg.glassfish.external.statistics.StringStatistic
getDeadlockedThreads()
Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizersorg.glassfish.external.statistics.StringStatistic
getMonitorDeadlockedThreads()
Finds cycles of threads that are in deadlock waiting to acquire object monitorsorg.glassfish.external.statistics.CountStatistic
getPeakThreadCount()
Returns the peak live thread count since the Java virtual machine started or peak was resetorg.glassfish.external.statistics.CountStatistic
getThreadCount()
Returns the current number of live threads including both daemon and non-daemon threadsorg.glassfish.external.statistics.CountStatistic
getTotalStartedThreadCount()
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
StringStatistic
with 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
CountStatistic
with 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
CountStatistic
with 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
CountStatistic
with 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
StringStatistic
with 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
StringStatistic
with 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
CountStatistic
with 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
CountStatistic
with 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
CountStatistic
with the total number of threads
-
getCpuUsage
@ManagedAttribute(id="cpuusage") @Description("Returns the CPU usage in percent.") public org.glassfish.external.statistics.CountStatistic getCpuUsage()
-
-