|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MemoryMXBean
The IBM-specific interface for monitoring the virtual machine's memory management system.
Method Summary | |
---|---|
java.lang.String |
getGCMode()
Returns the current GC mode as a human-readable string. |
long |
getMaxHeapSize()
Get the current maximum heap size in bytes. |
long |
getMaxHeapSizeLimit()
Get the maximum size in bytes to which the max heap size could be increased in the currently running VM. |
long |
getMinHeapSize()
Get the minimum heap size in bytes. |
boolean |
isSetMaxHeapSizeSupported()
Query whether the VM supports runtime reconfiguration of the maximum heap size through the setMaxHeapSize() call. |
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 |
---|
long getMaxHeapSizeLimit()
long getMaxHeapSize()
long getMinHeapSize()
void setMaxHeapSize(long size)
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.
size
- new -Xsoftmx value in bytesboolean isSetMaxHeapSizeSupported()
java.lang.String getGCMode()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |