protected class PIDStatCollector.PIDStatReader extends ProcessReaderHelper
pidstat output and extracts and updates counter
values.
Sample pidstat output.
Linux 2.6.22.14-72.fc6 (hostname) 03/16/2008
06:35:15 AM PID %user %system %CPU CPU Command
06:35:15 AM 501 0.00 0.01 0.00 1 kjournald
06:35:15 AM PID minflt/s majflt/s VSZ RSS %MEM Command
06:35:15 AM 501 0.00 0.00 0 0 0.00 kjournald
06:35:15 AM PID kB_rd/s kB_wr/s kB_ccwr/s Command
06:35:15 AM 501 0.00 1.13 0.00 kjournald
06:35:15 AM PID cswch/s nvcswch/s Command
06:35:15 AM 501 0.00 0.00 kjournald
ris, log| Constructor and Description |
|---|
PIDStatCollector.PIDStatReader() |
| Modifier and Type | Method and Description |
|---|---|
protected ActiveProcess |
getActiveProcess()
Override to return the
ActiveProcess. |
protected void |
readProcess()
The input arrives as an initial banner and a sequence of data
reporting events, each of which is three lines.
|
readLine, run, startprotected ActiveProcess getActiveProcess()
ProcessReaderHelperActiveProcess.getActiveProcess in class ProcessReaderHelperprotected void readProcess()
throws IOException,
InterruptedException
When you request more than one kind of reporting, the three line set simply repeats for each class of events that are to be reported. E.g., cpu and io. This code diagnoses the event types by examining the header line.
readProcess in class ProcessReaderHelperIOExceptionInterruptedExceptionCopyright © 2006–2019 SYSTAP, LLC DBA Blazegraph. All rights reserved.