-Xmine / -Xmaxe
Set the minimum and maximum amounts by which the garbage collector expands the heap.
||0 (unlimited expansion)|
See Using -X command-line options for more information about the
Typically, the garbage collector expands the heap by the amount required to restore the free space to 30% (or the amount specified by
If heap expansion is required:
-Xmineforces the expansion to be at least the specified value. For example,
-Xmine10Msets the expansion size to a minimum of 10 MB.
-Xmaxelimits the expansion to the specified value. For example
-Xmaxe50Mprevents expansion by more than 50 MB. (
-Xmaxe0allows unlimited expansion.)
gencon GC policy, the values apply only to the tenure part of the heap. For the
optavgpause GC policies, these values apply to the whole heap. This option cannot be used with the metronome GC policy (
-Xgcpolicy:metronome) because the heap is always fully expanded.