@AMXMetadata(type="thread-system-mon", group="monitoring") @ManagedObject @Description(value="JVM Thread System Statistics") public class JVMThreadSystemStatsProvider extends Object
The 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
Constructor and Description |
---|
JVMThreadSystemStatsProvider() |
Modifier and Type | Method and Description |
---|---|
org.glassfish.external.statistics.StringStatistic |
getAllThreadIds()
Returns all live thread IDs
|
org.glassfish.external.statistics.CountStatistic |
getCurrentThreadCpuTime()
Returns the total CPU time for the current thread in nanoseconds
|
org.glassfish.external.statistics.CountStatistic |
getCurrentThreadUserTime()
Returns the CPU time that the current thread has executed in user mode in nanoseconds
|
org.glassfish.external.statistics.CountStatistic |
getDaemonThreadCount()
Returns the current number of live daemon threads
|
org.glassfish.external.statistics.StringStatistic |
getDeadlockedThreads()
Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizers
|
org.glassfish.external.statistics.StringStatistic |
getMonitorDeadlockedThreads()
Finds cycles of threads that are in deadlock waiting to acquire object monitors
|
org.glassfish.external.statistics.CountStatistic |
getPeakThreadCount()
Returns the peak live thread count since the Java virtual machine started or peak was reset
|
org.glassfish.external.statistics.CountStatistic |
getThreadCount()
Returns the current number of live threads including both daemon and non-daemon threads
|
org.glassfish.external.statistics.CountStatistic |
getTotalStartedThreadCount()
Returns the total number of threads created and also started since the Java virtual machine started
|
@ManagedAttribute(id="allthreadids") @Description(value="Returns all live thread IDs") public org.glassfish.external.statistics.StringStatistic getAllThreadIds()
StringStatistic
with a comma separated list of all live thread IDs@ManagedAttribute(id="currentthreadcputime") @Description(value="Returns the total CPU time for the current thread in nanoseconds") public org.glassfish.external.statistics.CountStatistic getCurrentThreadCpuTime()
CountStatistic
with the time in nanoseconds@ManagedAttribute(id="currentthreadusertime") @Description(value="Returns the CPU time that the current thread has executed in user mode in nanoseconds") public org.glassfish.external.statistics.CountStatistic getCurrentThreadUserTime()
CountStatistic
with the time in nanoseconds@ManagedAttribute(id="daemonthreadcount") @Description(value="Returns the current number of live daemon threads") public org.glassfish.external.statistics.CountStatistic getDaemonThreadCount()
CountStatistic
with thenumber of threads@ManagedAttribute(id="deadlockedthreads") @Description(value="Finds cycles of threads that are in deadlock waiting to acquire object monitors or ownable synchronizers") public org.glassfish.external.statistics.StringStatistic getDeadlockedThreads()
StringStatistic
with a comma separated list of deadlocked threads or the string "None of the threads are deadlocked.
"
if there are no deadlocked threads@ManagedAttribute(id="monitordeadlockedthreads") @Description(value="Finds cycles of threads that are in deadlock waiting to acquire object monitors") public org.glassfish.external.statistics.StringStatistic getMonitorDeadlockedThreads()
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@ManagedAttribute(id="peakthreadcount") @Description(value="Returns the peak live thread count since the Java virtual machine started or peak was reset") public org.glassfish.external.statistics.CountStatistic getPeakThreadCount()
CountStatistic
with the highest number of threads@ManagedAttribute(id="threadcount") @Description(value="Returns the current number of live threads including both daemon and non-daemon threads") public org.glassfish.external.statistics.CountStatistic getThreadCount()
CountStatistic
with the current number of threads@ManagedAttribute(id="totalstartedthreadcount") @Description(value="Returns the total number of threads created and also started since the Java virtual machine started") public org.glassfish.external.statistics.CountStatistic getTotalStartedThreadCount()
CountStatistic
with the total number of threadsCopyright © 2018. All rights reserved.