|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MemorySystem
Interface to the JVM memory system.
Method Summary | |
---|---|
GarbageCollector |
getGarbageCollector()
Returns the GarbageCollector subsystem. |
long |
getInitialHeapSize()
Returns the size of the heap when the VM first started. |
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 |
---|
long getMaxHeapSize() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.long getTotalHeapSize() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.long getInitialHeapSize() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.long getUsedHeapSize() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.GarbageCollector getGarbageCollector() throws NotAvailableException
NotAvailableException
- if this functionality isn't available in
this JVM.GarbageCollector
void suggestHeapSize(long heapSize) throws NotAvailableException
heapSize
- the wanted heap size.
NotAvailableException
- if not supported
by the VM.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.boolean isHeapSizeLocked() throws NotAvailableException
NotAvailableException
- if not supported
by the VM.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.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 |