com.ibm.lang.management
Interface OperatingSystemMXBean
All Superinterfaces:
java.lang.management.OperatingSystemMXBean
- public interface OperatingSystemMXBean
- extends java.lang.management.OperatingSystemMXBean
Since:
1.5
Method Summary
Modifier and Type | Method and Description |
---|---|
|
getFreePhysicalMemorySize()
Returns the amount of physical memory that is available on the
system in bytes.
|
|
getProcessCpuTime()
Returns total amount of time the process has been scheduled or
executed so far in both kernel and user modes.
|
|
getProcessingCapacity()
Returns the collective capacity of the virtual processors in
the partition the VM is running in.
|
|
getProcessPhysicalMemorySize()
Returns the amount of physical memory being used by the process
in bytes.
|
|
getProcessPrivateMemorySize()
Returns the amount of private memory used by the process in bytes.
|
|
getProcessVirtualMemorySize()
Returns the amount of virtual memory used by the process in bytes,
including physical memory and swap space.
|
|
getTotalPhysicalMemory()
Returns the total number of bytes used for physical memory.
|
Methods inherited from interface java.lang.management.OperatingSystemMXBean |
---|
getArch, getAvailableProcessors, getName, getSystemLoadAverage, getVersion |
Method Detail
getTotalPhysicalMemory
- long getTotalPhysicalMemory()
Returns the total number of bytes used for physical memory.
Returns:
the number of bytes used for physical memory
getProcessingCapacity
- int getProcessingCapacity()
Returns the collective capacity of the virtual processors in
the partition the VM is running in. The value returned is in
units of 1% of a physical processor's capacity, so a value of
100 is equal to 1 physical processor. In environments without
such partitioning support, this call will return
getAvailableProcessors() * 100.
Returns:
the collective capacity of the virtual processors available
to the VM
getProcessCpuTime
- long getProcessCpuTime()
Returns total amount of time the process has been scheduled or
executed so far in both kernel and user modes. Returns -1 if the
value is unavailable on this platform or in the case of an error.
Returns:
process cpu time in 100 ns units
getFreePhysicalMemorySize
- long getFreePhysicalMemorySize( )
Returns the amount of physical memory that is available on the
system in bytes. Returns -1 if the value is unavailable on this
platform or in the case of an error.
Returns:
amount of physical memory available in bytes
getProcessVirtualMemorySize
- long getProcessVirtualMemorySize( )
Returns the amount of virtual memory used by the process in bytes,
including physical memory and swap space. Returns -1 if the value
is unavailable on this platform or in the case of an error.
Returns:
amount of virtual memory used by the process in bytes
getProcessPrivateMemorySize
- long getProcessPrivateMemorySize( )
Returns the amount of private memory used by the process in bytes.
Returns -1 if the value is unavailable on this platform or in the
case of an error.
Returns:
amount of private memory used by the process in bytes
getProcessPhysicalMemorySize
- long getProcessPhysicalMemorySize( )
Returns the amount of physical memory being used by the process
in bytes. Returns -1 if the value is unavailable on this platform
or in the case of an error.
Returns:
amount of physical memory being used by the process in bytes