Commit 34b74092 34b74092fee87d9260faad53d8805a27ea094640 by Christian Gerdes
2 parents 56b16db9 5791fcf8
......@@ -392,9 +392,13 @@ public class JmxMon {
public double getSystemFileDescriptorsPercentUsed() {
LongDelta ldo = getAttributeLongDelta("java.lang:type=OperatingSystem", "OpenFileDescriptorCount");
LongDelta ldm = getAttributeLongDelta("java.lang:type=OperatingSystem", "MaxFileDescriptorCount");
if(ldo != null && ldm != null) {
double open = ldo.getCurrentValue();
double max = ldm.getCurrentValue();
return (open/max) * 100D;
} else {
return 0;
}
}
public double getHeapUsedMB() {
......