com.ibm.lang.management

Interface OperatingSystemMXBean

All Superinterfaces:
java.lang.management.OperatingSystemMXBean

  1. public interface OperatingSystemMXBean
  2. extends java.lang.management.OperatingSystemMXBean
The IBM-specific interface for monitoring the operating system where the virtual machine is running.
Since:
1.5

Method Summary

Modifier and Type Method and Description
  1. long
getFreePhysicalMemorySize()
Returns the amount of physical memory that is available on the system in bytes.
  1. long
getProcessCpuTime()
Returns total amount of time the process has been scheduled or executed so far in both kernel and user modes.
  1. int
getProcessingCapacity()
Returns the collective capacity of the virtual processors in the partition the VM is running in.
  1. long
getProcessPhysicalMemorySize()
Returns the amount of physical memory being used by the process in bytes.
  1. long
getProcessPrivateMemorySize()
Returns the amount of private memory used by the process in bytes.
  1. long
getProcessVirtualMemorySize()
Returns the amount of virtual memory used by the process in bytes, including physical memory and swap space.
  1. long
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

  1. long getTotalPhysicalMemory()
Returns the total number of bytes used for physical memory.
Returns:
the number of bytes used for physical memory

getProcessingCapacity

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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

  1. 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