-Xmint / -Xmaxt
Sets the minimum and maximum proportion of time to spend in the garbage collection (GC) process as a percentage of the overall running time that included the last three GC runs. Therefore, the time spent in the GC process includes time spent in global mark phase and global GC operations but excludes partial garbage collection pauses because the latter apply only to the eden space.
- If the percentage of time drops to less than the minimum, the Eclipse OpenJ9™ VM tries to shrink the heap.
- If the percentage of time exceeds the maximum, the VM tries to expand the heap.
Restrictions:
- This option applies only to GC policies that include stop-the-world (STW) operations, such as
-Xgcpolicy:optthruput
.
Syntax
Setting | Effect | Default for balanced policy | Default for other policies |
---|---|---|---|
-Xmint<value> |
Set minimum time in GC | 0.02 | 0.05 |
-Xmaxt<value> |
Set maximum time in GC | 0.05 | 0.13 |
- For the
balanced
GC policy, the values apply only to the non-eden space part of the heap. The non-eden heap resizing decision is made by observing both-Xmint
/-Xmaxt
and-Xminf
/-Xmaxf
. - For the
gencon
GC policy, the values apply only to the tenure part of the heap. - For the
optthruput
, andoptavgpause
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.