-Dcom.ibm.lang.management.
OperatingSystemMXBean.isCpuTime100ns
Changes the unit of the return value of the OperatingSystemMXBean.getProcessCpuTime()
method.
Syntax
-Dcom.ibm.lang.management.OperatingSystemMXBean.isCpuTime100ns=[true|false]
Setting | Effect | Default |
---|---|---|
true | Enable | |
false | Disable | yes |
Explanation
The Oracle java.lang.management
package includes MBean categories such as Memory
, OperatingSystem
, and GarbageCollector
. The Eclipse OpenJ9™ VM provides additional MXBeans to extend the monitoring and management capabilities. For example, the OperatingSystemMXBean
, which monitors operating system settings such as physical and virtual memory size, processor capacity, and processor utilization.
The OperatingSystemMXBean.getProcessCpuTime()
method returns a value in nanoseconds (10-9 s), for compatibility with the com.sun.management.OperatingSystemMXBean
and UnixOperatingSystemMXBean
interfaces.
In earlier VM releases, the return value was in hundreds of nanoseconds. If you want to revert to this behavior, set the -Dcom.ibm.lang.management.OperatingSystemMXBean.isCpuTime100ns
property to true
.
The default value for this property is false
.