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:
commit
d5676e9dfa
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue