1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-25 02:18:08 +00:00

Merge pull request #965 from shuehner/fix_permgen_metaspace

Fix reporting of 'Permanent Generation' / Metaspace (for java<8)
This commit is contained in:
Lars Kruse 2018-12-14 21:13:24 +01:00 committed by GitHub
commit d5676e9dfa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -124,6 +124,11 @@ print_stats() {
S1F = $idx["S1C"] - $idx["S1U"];
EF = $idx["EC"] - $idx["EU"];
OF = $idx["OC"] - $idx["OU"];
# Java <8 has Permanent Generation (PU,PC columns), while >=8 has/names it Metaspace (MU,MC)
if (idx["MU"] == "") {
idx["MU"] = idx["PU"];
idx["MC"] = idx["PC"];
}
MF = $idx["MC"] - $idx["MU"];
print "Eden_Used.value " $idx["EU"] * 1024;
print "Eden_Free.value " EF * 1024;