OperatingSystemMXBean, PlatformManagedObjectUnixOperatingSystemMXBeanpublic interface OperatingSystemMXBean extends OperatingSystemMXBean
The OperatingSystemMXBean object returned by
ManagementFactory.getOperatingSystemMXBean()
is an instance of the implementation class of this interface
or UnixOperatingSystemMXBean interface depending on
its underlying operating system.
| Modifier and Type | Method | Description |
|---|---|---|
long |
getCommittedVirtualMemorySize() |
Returns the amount of virtual memory that is guaranteed to
be available to the running process in bytes,
or
-1 if this operation is not supported. |
long |
getFreePhysicalMemorySize() |
Returns the amount of free physical memory in bytes.
|
long |
getFreeSwapSpaceSize() |
Returns the amount of free swap space in bytes.
|
double |
getProcessCpuLoad() |
Returns the "recent cpu usage" for the Java Virtual Machine process.
|
long |
getProcessCpuTime() |
Returns the CPU time used by the process on which the Java
virtual machine is running in nanoseconds.
|
double |
getSystemCpuLoad() |
Returns the "recent cpu usage" for the whole system.
|
long |
getTotalPhysicalMemorySize() |
Returns the total amount of physical memory in bytes.
|
long |
getTotalSwapSpaceSize() |
Returns the total amount of swap space in bytes.
|
getArch, getAvailableProcessors, getName, getSystemLoadAverage, getVersiongetObjectNamelong getCommittedVirtualMemorySize()
-1 if this operation is not supported.-1 if this operation is not supported.long getTotalSwapSpaceSize()
long getFreeSwapSpaceSize()
long getProcessCpuTime()
-1 if the
the platform does not support this operation.-1 if this operation is not supported.long getFreePhysicalMemorySize()
long getTotalPhysicalMemorySize()
double getSystemCpuLoad()
double getProcessCpuLoad()
Submit a bug or feature
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 2003, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.
DRAFT 9-Debian+0-9b153-2