public final class OperatingSystemMXBeanSupport extends Object
Modifier and Type | Field and Description |
---|---|
static boolean |
GET_FREE_PHYSICAL_MEMORY_SIZE_DISABLED
On AIX it can happen that the getFreePhysicalMemorySize method is very slow.
|
Modifier and Type | Method and Description |
---|---|
static double |
getSystemLoadAverage()
Reads the system load average attribute from OperatingSystemMXBean.
|
static long |
readLongAttribute(String attributeName,
long defaultValue)
Reads a long attribute from OperatingSystemMXBean.
|
public static volatile boolean GET_FREE_PHYSICAL_MEMORY_SIZE_DISABLED
public static long readLongAttribute(String attributeName, long defaultValue)
attributeName
- name of the attributedefaultValue
- default value if the attribute value is nullpublic static double getSystemLoadAverage()
Copyright © 2020 Hazelcast, Inc.. All Rights Reserved.