public class JmxMonitor extends Monitor
SigarMonitor is more accurate than this
monitor.SigarMonitor| Modifier and Type | Field and Description |
|---|---|
protected javax.management.ObjectName |
name |
protected javax.management.MBeanServer |
server |
cachedCPU, cachedPID, cacheTimeout, cpuDetectedAt, invalidMonitor, logger| Constructor and Description |
|---|
JmxMonitor() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
detectPID()
Returns the system CPU usage, in percents, between 0 and 100.
|
protected int |
detectTotalCpuPercent()
Returns the system CPU usage, in percents, between 0 and 100.
|
getPID, getTotalCpuPercentprotected javax.management.MBeanServer server
protected javax.management.ObjectName name
protected int detectTotalCpuPercent()
throws java.lang.Exception
detectTotalCpuPercent in class Monitorjava.lang.Exception - any I/O or missing DLL exception