1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-21 18:41:03 +00:00
Munin-Contrib/plugins/jvm
Stefan Huehner f0548a37de Fix jstat* plugins to work again with java 6+7, fix PU reporting for
Java8.

jstat column output is not stable across JVM versions (technically
version of jstat binary used).
New columns are added not add the end of column list but in the middle
breaking access via constant index.

Following table shows the known columns per version:
Oracle JDK / OpenJDK 1.5 .. 1.7
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       PC     PU    YGC    YGCT   FGC     FGCT    GCT
Openjdk 1.8 .. 10
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     GCT
Openjdk 11  .. 12
   S0C    S1C    S0U    S1U      EC       EU        OC         OU       MC     MU    CCSC   CCSU   YGC     YGCT    FGC    FGCT     CGC    CGCT     GCT

Earlier commit here added support for java8+ but using version checking
if version == 1.5 > Use pre-java8 column format, else new format.

As fixing java6+7 would mean more version comparison which is ugly this
cmomit changes retrival logic to the following;
a.) Parse first line jstat output to find position for each label
b.) Then use that position to fetch value from 2nd line

That way code auto-adjusts to any ordering change without needing any
java version specific code or checks.

On the way fix 'Permanent Used' value reporting for java8 which was
broken (missing variable rename from PU -> MU when java8 support was
added).
2018-12-13 15:20:34 +01:00
..
jstat__gccount Fix jstat* plugins to work again with java 6+7, fix PU reporting for 2018-12-13 15:20:34 +01:00
jstat__gctime Fix jstat* plugins to work again with java 6+7, fix PU reporting for 2018-12-13 15:20:34 +01:00
jstat__heap Fix jstat* plugins to work again with java 6+7, fix PU reporting for 2018-12-13 15:20:34 +01:00
jvm_sun_memory Whitespace cleanup 2018-08-02 02:33:25 +02:00
jvm_sun_minorgcs Whitespace cleanup 2018-08-02 02:33:25 +02:00
jvm_sun_tenuredgcs Whitespace cleanup 2018-08-02 02:33:25 +02:00