scoutapp/scout-plugins — pull request #71 by jtuberville (2012-11-29 18:19:11+00:00)
Title: Proposed Jstat plugin

I have been doing some memory profiling on our java web application. Java
has had a great utility since 1.5 for monitoring a running process called
jstat. Jstat is similar to the sysstat linux commands (iostat, vmstat,
mpstat). Anyhow, I want historic metrics so I wrote a Scout plugin

I made this general purpose by allowing the PID File, statOption and columns
to be configurable. Maybe other scout users that need jvm metrics could
make use of it. I am using some but not all of the columns returned with
the gc option. The column names are returned as a header line which I used
as the keys in the values map.

The docs for jstat are at
http://docs.oracle.com/javase/1.5.0/docs/tooldocs/share/jstat.html