public interface OperatingSystemMXBean
extends java.lang.management.OperatingSystemMXBean
Modifier and Type | Method and Description |
---|---|
long |
getFreePhysicalMemorySize()
Returns the amount of physical memory that is available on the
system in bytes.
|
long |
getProcessCpuTime()
Returns total amount of time the process has been scheduled or
executed so far in both kernel and user modes.
|
long |
getProcessCpuTimeByNS()
Returns total amount of time the process has been scheduled or
executed so far in both kernel and user modes.
|
int |
getProcessingCapacity()
Returns the collective capacity of the virtual processors in
the partition the VM is running in.
|
long |
getProcessPhysicalMemorySize()
Returns the amount of physical memory being used by the process
in bytes.
|
long |
getProcessPrivateMemorySize()
Returns the amount of private memory used by the process in bytes.
|
long |
getProcessVirtualMemorySize()
Returns the amount of virtual memory used by the process in bytes,
including physical memory and swap space.
|
double |
getSystemCpuLoad()
Returns the CPU utilization: fraction of the time spent in user or system/privileged
mode since the last call to getSystemCpuLoad().
|
long |
getTotalPhysicalMemory()
Returns the total number of bytes used for physical memory.
|
long getTotalPhysicalMemory()
int getProcessingCapacity()
long getProcessCpuTime()
long getFreePhysicalMemorySize()
long getProcessVirtualMemorySize()
long getProcessPrivateMemorySize()
long getProcessPhysicalMemorySize()
long getProcessCpuTimeByNS()
double getSystemCpuLoad()
Returns the CPU utilization: fraction of the time spent in user or system/privileged mode since the last call to getSystemCpuLoad(). Other values include:
getSystemCpuLoad might not return the same value that is reported by operating system utilities such as Unix "top" or Windows task manager.