Skip to content

-Xmn / -Xmns / -Xmnx

Sets the initial and maximum size of the new area when using -Xgcpolicy:gencon.

If the scavenger is disabled, this option is ignored.

You can use the -verbose:sizes option to find out the value that is being used by the VM.


Setting Effect Default
-Xmn<size> Equivalent to setting both -Xmns and -Xmnx Not set
-Xmns<size> Set initial size 25% of -Xms
-Xmnx<size> Set maximum size 25% of -Xmx

See Using -X command-line options for more information about the <size> parameter.

Restriction: If you try to set -Xmn with either -Xmns or -Xmnx, the VM does not start, returning an error.