public class StatisticsCollectorForLinux extends AbstractStatisticsCollector
vmstat and
sysstat suite.http://pagesperso-orange.fr/sebastien.godard/AbstractStatisticsCollector.Options| Modifier and Type | Field and Description |
|---|---|
protected static KernelVersion |
kernelVersion
The Linux
KernelVersion. |
protected static int |
pid
The process identifier for this process (the JVM).
|
protected PIDStatCollector |
pidstat
reports on process performance counters (CPU, MEM, IO).
|
protected String |
processName
The name of the process (or more typically its service
UUID)
whose per-process performance counters are to be collected. |
protected SarCpuUtilizationCollector |
sar1
Reports on the host CPU utilization (these data are also available using
vmstat).
|
protected VMStatCollector |
vmstat
Reports on the host page faults, swap space and can report CPU
utilization.
|
fullyQualifiedHostName, hostPathPrefix, interval, log, ps| Constructor and Description |
|---|
StatisticsCollectorForLinux(int interval,
String processName) |
| Modifier and Type | Method and Description |
|---|---|
CounterSet |
getCounters()
Return the counter hierarchy.
|
void |
start()
Start collecting host performance data -- must be extended by the
concrete subclass.
|
void |
stop()
Stop collecting host performance data -- must be extended by the concrete
subclass.
|
addBasicServiceOrClientCounters, addGarbageCollectorMXBeanCounters, addMemoryPoolMXBeanCounters, addServiceProperties, getInterval, getMemoryCounterSet, getProcessName, installShutdownHook, kb2b, main, newInstanceprotected static int pid
protected static KernelVersion kernelVersion
KernelVersion.protected final String processName
UUID)
whose per-process performance counters are to be collected.protected SarCpuUtilizationCollector sar1
protected VMStatCollector vmstat
protected PIDStatCollector pidstat
public StatisticsCollectorForLinux(int interval,
String processName)
interval - The interval at which the performance counters will be
collected in seconds.processName - The name of the process (or more typically its service
UUID) whose per-process performance counters are to
be collected.public void start()
AbstractStatisticsCollectorstart in interface IStatisticsCollectorstart in class AbstractStatisticsCollectorpublic void stop()
AbstractStatisticsCollectorstop in interface IStatisticsCollectorstop in class AbstractStatisticsCollectorpublic CounterSet getCounters()
AbstractStatisticsCollectorAbstractProcessCollector.
Note: Subclasses MUST extend this method to initialize their own
counters.
TODO Why does this use the older synchronized pattern with a
shared AbstractStatisticsCollector.countersRoot object rather than returning a new object
per request? Check assumptions in the scale-out and local journal code
bases for this.
getCounters in interface ICounterSetAccessgetCounters in class AbstractStatisticsCollectorCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.