public class SigarMonitor extends Monitor
JmxMonitor.| Modifier and Type | Field and Description |
|---|---|
protected static org.hyperic.sigar.Sigar |
sigar |
cachedCPU, cachedPID, cacheTimeout, cpuDetectedAt, invalidMonitor, logger| Constructor and Description |
|---|
SigarMonitor() |
| Modifier and Type | Method and Description |
|---|---|
protected long |
detectPID()
Returns the PID of Java VM.
|
protected int |
detectTotalCpuPercent()
Returns the system CPU usage, in percents, between 0 and 100.
|
getPID, getTotalCpuPercentprotected int detectTotalCpuPercent()
throws java.lang.Exception
detectTotalCpuPercent in class Monitorjava.lang.Exception - any I/O or missing DLL exception