com.ibm.lang.management

Interface MemoryMXBean

All Superinterfaces:
java.lang.management.MemoryMXBean

  1. public interface MemoryMXBean
  2. extends java.lang.management.MemoryMXBean
The IBM-specific interface for monitoring the virtual machine's memory management system.
Since:
1.5

Method Summary

Modifier and Type Method and Description
  1. java.lang.String
getGCMode()
Returns the current GC mode as a human-readable string.
  1. long
getMaxHeapSize()
Get the current maximum heap size in bytes.
  1. long
getMaxHeapSizeLimit()
Get the maximum size in bytes to which the max heap size could be increased in the currently running VM.
  1. long
getMinHeapSize()
Get the minimum heap size in bytes.
  1. long
getSharedClassCacheFreeSpace()
Returns the free space in bytes of the cache that the JVM is currently connected to.
  1. long
getSharedClassCacheSize()
Returns the total size in bytes of the cache that the JVM is currently connected to.
  1. boolean
isSetMaxHeapSizeSupported()
Query whether the VM supports runtime reconfiguration of the maximum heap size through the setMaxHeapSize() call.
  1. void
setMaxHeapSize(long size)
Set the current maximum heap size to size.
Methods inherited from interface java.lang.management.MemoryMXBean
gc, getHeapMemoryUsage, getNonHeapMemoryUsage, getObjectPendingFinalizationCount, isVerbose, setVerbose

Method Detail

getMaxHeapSizeLimit

  1. long getMaxHeapSizeLimit()
Get the maximum size in bytes to which the max heap size could be increased in the currently running VM. This may be larger than the current max heap size.
Returns:
value of -Xmx in bytes

getMaxHeapSize

  1. long getMaxHeapSize()
Get the current maximum heap size in bytes.
Returns:
current value of -Xsoftmx in bytes

getMinHeapSize

  1. long getMinHeapSize()
Get the minimum heap size in bytes.
Returns:
value of -Xms in bytes

setMaxHeapSize

  1. void setMaxHeapSize(long size)
Set the current maximum heap size to size. The parameter specifies the max heap size in bytes and must be between getMinHeapSize() and getMaxHeapSizeLimit(). If this operation is not supported, this method will throw UnsupportedOperationException.
Parameters:
size - new -Xsoftmx value in bytes

isSetMaxHeapSizeSupported

  1. boolean isSetMaxHeapSizeSupported( )
Query whether the VM supports runtime reconfiguration of the maximum heap size through the setMaxHeapSize() call.
Returns:
true if setMaxHeapSize is supported, false otherwise

getSharedClassCacheSize

  1. long getSharedClassCacheSize()
Returns the total size in bytes of the cache that the JVM is currently connected to.
Returns:
the number of bytes in the shared class cache.

getSharedClassCacheFreeSpace

  1. long getSharedClassCacheFreeSpace( )
Returns the free space in bytes of the cache that the JVM is currently connected to.
Returns:
the number of bytes free in the shared class cache.

getGCMode

  1. java.lang.String getGCMode()
Returns the current GC mode as a human-readable string.
Returns:
a String describing the mode the GC is currently operating in