public interface MemoryMXBean extends MemoryMXBean
Modifier and Type | Method and Description |
---|---|
int |
getCurrentGCThreads()
Returns the number of GC worker threads that participated in the most recent collection.
|
long |
getGCMainThreadCpuUsed()
Returns the amount of CPU time spent in the GC by the main thread, in
milliseconds.
|
long |
getGCMasterThreadCpuUsed()
Deprecated.
renamed to getGCMainThreadCpuUsed
|
String |
getGCMode()
Returns the current GC mode as a human-readable string.
|
long |
getGCSlaveThreadsCpuUsed()
Deprecated.
renamed to getGCWorkerThreadsCpuUsed
|
long |
getGCWorkerThreadsCpuUsed()
Returns the total amount of CPU time spent in the GC by all worker threads,
in milliseconds.
|
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.
|
int |
getMaximumGCThreads()
Returns the maximum number of GC worker threads.
|
long |
getMinHeapSize()
Get the minimum heap size in bytes.
|
long |
getSharedClassCacheFreeSpace()
Returns the free space in bytes of the cache that the JVM is
currently connected to.
|
long |
getSharedClassCacheMaxAotBytes()
Returns the maximum space allowed for AOT data of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheMaxAotUnstoredBytes()
Returns the bytes which are not stored into the shared classes cache due to the current setting of maximum space allowed for AOT data.
|
long |
getSharedClassCacheMaxJitDataBytes()
Returns the maximum space allowed for JIT data of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheMaxJitDataUnstoredBytes()
Returns the bytes which are not stored into the shared classes cache due to the current setting of maximum space allowed for JIT data.
|
long |
getSharedClassCacheMinAotBytes()
Returns the minimum space reserved for AOT data of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheMinJitDataBytes()
Returns the minimum space reserved for JIT data of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheSize()
Returns the total size in bytes of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheSoftmxBytes()
Returns the softmx size in bytes of the cache that the JVM is currently
connected to.
|
long |
getSharedClassCacheSoftmxUnstoredBytes()
Returns the bytes which are not stored into the shared classes cache due to the current setting of softmx in shared classes.
|
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 . |
boolean |
setSharedClassCacheMaxAotBytes(long value)
Set the maximum shared classes cache space allowed for AOT data to
value bytes. |
boolean |
setSharedClassCacheMaxJitDataBytes(long value)
Set the maximum shared classes cache space allowed for JIT data to
value bytes. |
boolean |
setSharedClassCacheMinAotBytes(long value)
Set the minimum shared classes cache space reserved for AOT data to
value bytes. |
boolean |
setSharedClassCacheMinJitDataBytes(long value)
Set the minimum shared classes cache space reserved for JIT data to
value bytes. |
boolean |
setSharedClassCacheSoftmxBytes(long value)
Set the shared class softmx size to
value . |
gc, getHeapMemoryUsage, getNonHeapMemoryUsage, getObjectPendingFinalizationCount, isVerbose, setVerbose
getObjectName
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().
See -Xsoftmx in the command line reference for additional
details on the effect of setting softmx.size
- new -Xsoftmx value in bytesUnsupportedOperationException
- if this operation is not supported.IllegalArgumentException
- if input value size
is either less than
getMinHeapSize() or greater than getMaxHeapSizeLimit().SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".boolean isSetMaxHeapSizeSupported()
long getSharedClassCacheSize()
long getSharedClassCacheSoftmxBytes()
long getSharedClassCacheMinAotBytes()
long getSharedClassCacheMaxAotBytes()
long getSharedClassCacheMinJitDataBytes()
long getSharedClassCacheMaxJitDataBytes()
boolean setSharedClassCacheSoftmxBytes(long value)
value
.
The parameter specifies the softmx in bytes.
See -Xscmx in the command line reference for additional
details on the effect of setting shared class softmx.value
- new shared cache soft max value in bytesIllegalArgumentException
- if input value value
is less than 0.SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".boolean setSharedClassCacheMinAotBytes(long value)
value
bytes.
See -Xscminaot in the command line reference for additional
details on the effect of setting shared class -Xscminaot.value
- new -Xscminaot value in bytesIllegalArgumentException
- if input value value
is less than 0.SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".boolean setSharedClassCacheMaxAotBytes(long value)
value
bytes.
See -Xscmaxaot in the command line reference for additional
details on the effect of setting shared class -Xscmaxaot.value
- new -Xscmaxaot value in bytesIllegalArgumentException
- if input value value
is less than 0.SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".boolean setSharedClassCacheMinJitDataBytes(long value)
value
bytes.
See -Xscminjitdata in the command line reference for additional
details on the effect of setting shared class -Xscminjitdata.value
- new -Xscminjitdata value in bytesIllegalArgumentException
- if input value value
is less than 0.SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".boolean setSharedClassCacheMaxJitDataBytes(long value)
value
bytes.
See -Xscmaxjitdata in the command line reference for additional
details on the effect of setting shared class -Xscmaxjitdata.value
- new -Xscmaxjitdata value in bytesIllegalArgumentException
- if input value value
is less than 0.SecurityException
- if a SecurityManager
is being used and the caller
does not have the ManagementPermission
value
of "control".long getSharedClassCacheSoftmxUnstoredBytes()
long getSharedClassCacheMaxAotUnstoredBytes()
long getSharedClassCacheMaxJitDataUnstoredBytes()
long getSharedClassCacheFreeSpace()
String getGCMode()
@Deprecated long getGCMasterThreadCpuUsed()
long getGCMainThreadCpuUsed()
@Deprecated long getGCSlaveThreadsCpuUsed()
long getGCWorkerThreadsCpuUsed()
int getMaximumGCThreads()
int getCurrentGCThreads()
Eclipse OpenJ9 website.
To raise a bug report or suggest an improvement create an Eclipse OpenJ9 issue.
Copyright © 2001, 2024 IBM Corp. and others.