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
longgetMaxHeapSize()
Get the current maximum heap size in bytes.
Returns:
current value of -Xsoftmx in bytes
getMinHeapSize
longgetMinHeapSize()
Get the minimum heap size in bytes.
Returns:
value of -Xms in bytes
setMaxHeapSize
voidsetMaxHeapSize(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().
See -Xsoftmx in the command line reference for additional
details on the effect of setting softmx.
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".
isSetMaxHeapSizeSupported
booleanisSetMaxHeapSizeSupported()
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
longgetSharedClassCacheSize()
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.
getSharedClassCacheSoftmxBytes
longgetSharedClassCacheSoftmxBytes()
Returns the softmx size in bytes of the cache that the JVM is currently
connected to.
Returns:
the softmx bytes in the shared class cache or cache size if it is not set.
getSharedClassCacheMinAotBytes
longgetSharedClassCacheMinAotBytes()
Returns the minimum space reserved for AOT data of the cache that the JVM is currently
connected to.
Returns:
the minimum shared classes cache space reserved for AOT data in bytes or -1 if it is not set.
getSharedClassCacheMaxAotBytes
longgetSharedClassCacheMaxAotBytes()
Returns the maximum space allowed for AOT data of the cache that the JVM is currently
connected to.
Returns:
the maximum shared classes cache space allowed for AOT data or -1 if it is not set.
getSharedClassCacheMinJitDataBytes
longgetSharedClassCacheMinJitDataBytes()
Returns the minimum space reserved for JIT data of the cache that the JVM is currently
connected to.
Returns:
the minimum shared classes cache space reserved for JIT data or -1 if it is not set.
getSharedClassCacheMaxJitDataBytes
longgetSharedClassCacheMaxJitDataBytes()
Returns the maximum space allowed for JIT data of the cache that the JVM is currently
connected to.
Returns:
the maximum shared classes cache space allowed for JIT data or -1 if it is not set.
setSharedClassCacheSoftmxBytes
booleansetSharedClassCacheSoftmxBytes(long value)
Set the shared class softmx size to 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.
Parameters:
value - new shared cache soft max value in bytes
Returns:
whether the requested operation has been completed.
SecurityException - if a SecurityManager is being used and the caller
does not have the ManagementPermission value
of "control".
setSharedClassCacheMinAotBytes
booleansetSharedClassCacheMinAotBytes(long value)
Set the minimum shared classes cache space reserved for AOT data to value bytes.
See -Xscminaot in the command line reference for additional
details on the effect of setting shared class -Xscminaot.
Parameters:
value - new -Xscminaot value in bytes
Returns:
whether the requested operation has been completed.
SecurityException - if a SecurityManager is being used and the caller
does not have the ManagementPermission value
of "control".
setSharedClassCacheMaxAotBytes
booleansetSharedClassCacheMaxAotBytes(long value)
Set the maximum shared classes cache space allowed for AOT data to value bytes.
See -Xscmaxaot in the command line reference for additional
details on the effect of setting shared class -Xscmaxaot.
Parameters:
value - new -Xscmaxaot value in bytes
Returns:
whether the requested operation has been completed.
Set the minimum shared classes cache space reserved for JIT data to value bytes.
See -Xscminjitdata in the command line reference for additional
details on the effect of setting shared class -Xscminjitdata.
Parameters:
value - new -Xscminjitdata value in bytes
Returns:
whether the requested operation has been completed.
Set the maximum shared classes cache space allowed for JIT data to value bytes.
See -Xscmaxjitdata in the command line reference for additional
details on the effect of setting shared class -Xscmaxjitdata.
Parameters:
value - new -Xscmaxjitdata value in bytes
Returns:
whether the requested operation has been completed.