public class SarCpuUtilizationCollector extends AbstractProcessCollector implements ICounterHierarchy, IRequiredHostCounters, IHostCounters
sar -u.activeProcess, logCPU_PercentIOWait, CPU_PercentSystemTime, CPU_PercentUserTime, Info_NumProcessors, Info_ProcessorInfo, Memory_Bytes_Available, Memory_Bytes_Free, Memory_MinorFaultsPerSec, Memory_SwapBytesAvailable, Memory_SwapBytesUsed, PhysicalDisk_BytesPerSec, PhysicalDisk_ReadsPerSec, PhysicalDisk_TransfersPerSec, PhysicalDisk_WritesPerSecCPU_PercentProcessorTime, Info_Architecture, Info_OperatingSystemName, Info_OperatingSystemVersion, LogicalDisk_PercentFreeSpace, Memory_majorFaultsPerSecond, PhysicalDisk_BytesReadPerSec, PhysicalDisk_BytesWrittenPerSecCPU, Info, LogicalDisk, Memory, Memory_GarbageCollectors, Memory_Memory_Pools, PhysicalDisk, ps| Constructor and Description |
|---|
SarCpuUtilizationCollector(int interval,
KernelVersion kernelVersion) |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
getCommand() |
CounterSet |
getCounters()
Return performance counters.
|
AbstractProcessReader |
getProcessReader() |
protected void |
setEnvironment(Map<String,String> env)
Extended to force
sar to use a consistent timestamp
format regardless of locale by setting
S_TIME_FORMAT="ISO" in the environment. |
getInterval, start, stoppublic SarCpuUtilizationCollector(int interval,
KernelVersion kernelVersion)
interval - The reporting interval in seconds.kernelVersion - public List<String> getCommand()
getCommand in class AbstractProcessCollectorpublic CounterSet getCounters()
ICounterSetAccessgetCounters in interface ICounterSetAccessprotected void setEnvironment(Map<String,String> env)
sar to use a consistent timestamp
format regardless of locale by setting
S_TIME_FORMAT="ISO" in the environment.setEnvironment in class AbstractProcessCollectorpublic AbstractProcessReader getProcessReader()
getProcessReader in class AbstractProcessCollectorCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.