com.sun.management.OperatingSystemMXBean |
![]() |
Platform-specific management interface for the operating system on which the Java virtual machine is running.
The OperatingSystemMXBean object returned by
getOperatingSystemMXBean()
is an instance of the implementation class of this interface
or UnixOperatingSystemMXBean
interface depending on
its underlying operating system.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
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.
| |||||||||||
Returns the amount of free physical memory in bytes.
| |||||||||||
Returns the amount of free swap space in bytes.
| |||||||||||
Returns the CPU time used by the process on which the Java
virtual machine is running in nanoseconds.
| |||||||||||
Returns the total amount of physical memory in bytes.
| |||||||||||
Returns the total amount of swap space in bytes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
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.
Returns the amount of free physical memory in bytes.
Returns the amount of free swap space in bytes.
Returns the CPU time used by the process on which the Java virtual machine is running in nanoseconds. The returned value is of nanoseconds precision but not necessarily nanoseconds accuracy. This method returns -1 if the the platform does not support this operation.
Returns the total amount of physical memory in bytes.
Returns the total amount of swap space in bytes.