|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface to the JVM memory system.
| Method Summary | |
GarbageCollector |
getGarbageCollector()
Returns the GarbageCollector subsystem. |
long |
getMaxHeapSize()
Returns the maximum size the heap may grow to, in bytes. |
long |
getTotalHeapSize()
Returns the size of the heap that the JVM has allocated, in bytes. |
long |
getUsedHeapSize()
Returns the committed heap size of the JVM in bytes. |
boolean |
isExitOnOutOfMemory()
Returns true if the JVM will exit with an error code instead of throwing an OutOfMemoryError, false if it throws an OutOfMemoryError. |
boolean |
isHeapSizeLocked()
This method returns false if the heap size is controlled by the JVM, false otherwise. |
void |
setExitOnOutOfMemory(boolean exit)
This method will change whether the JVM will exit with an error code, instead of throwing an OutOfMemoryError. |
void |
setHeapSizeLocked(boolean lock)
This method changes the JVM's ability to adaptively change the heap size. |
void |
suggestHeapSize(long heapSize)
This method will suggest the heapsize to be used. |
| Methods inherited from interface com.bea.jvm.Describable |
getDescription |
| Method Detail |
public long getMaxHeapSize()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public long getTotalHeapSize()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public long getUsedHeapSize()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.
public GarbageCollector getGarbageCollector()
throws NotAvailableException
NotAvailableException - if this functionality isn't available in
this JVM.GarbageCollector
public void suggestHeapSize(long heapSize)
throws NotAvailableException
heapSize - the wanted heap size.
NotAvailableException - if not supported
by the VM.
public void setHeapSizeLocked(boolean lock)
throws NotAvailableException
lock - if true, the heap size will no longer be changed
by the JVM, if false, the JVM is in control over the heap size.
NotAvailableException - if not supported
by the VM.
public boolean isHeapSizeLocked()
throws NotAvailableException
NotAvailableException - if not supported
by the VM.
public void setExitOnOutOfMemory(boolean exit)
throws NotAvailableException
In the case of JRockit, the exit code will be 72.
exit - if true, the JVM will exit when out of memory, if false,
it will throw an OutOfMemoryError.
NotAvailableException - if not supported by the VM.
public boolean isExitOnOutOfMemory()
throws NotAvailableException
Default is false.
NotAvailableException - if not supported by the VM.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||