A CollectD plugin to collect G1GC stats from a local JVM. Uses CollectD's Python plugin. Size and time metric units are bytes and milliseconds, respectively.
We use G1GC and the following JVM options for GC logging, and recommend you use the same for services monitored by this plugin:
-verbosegc -XX:+PrintGC -XX:+PrintGCDateStamps -XX:+PrintAdaptiveSizePolicy -XX:+PrintGCDetails -XX:+PrintGCApplicationStoppedTime -XX:+PrintTenuringDistribution
####Configuration parameters (defaults refer to values in g1gcstats.conf):
LogDir
: directory to find GC logs in (REQUIRED: no default).Family
: plugin_instance value for the cluster type the plugin is running on (""
).Verbose
: iftrue
, print verbose logging (false
).MeasureEdenAvg
: iftrue
, record and send mean Eden size (true
).MeasureTenuredAvg
: iftrue
, record and send mean Tenured (Old Gen) size (true
).MeasureIHOPThreshold
: iftrue
, record and send Old Gen mixed GC threshold (true
).MeasureMixedPause
: iftrue
, record and send mixed GC count and pause time (true
).MeasureYoungPause
: iftrue
, record and send young GC count and pause time (true
).MeasureFullPause
: iftrue
, record and send full GC count and pause time (true
).MeasureMaxPause
: iftrue
, record and send longest GC pause since last report (true
).LongPauseThreshold
: (integer) if non-zero, count pauses longer than config ms (1000
).CountHumongousObjects
: iftrue
, count humongous objects allocated (true
).