Skip to content

-Xmo / -Xmos / -Xmox

Sets the size of the tenure area of the heap for the gencon garbage collection (GC) policy.

You can use the -verbose:sizes option to find out the values that the VM is currently using.

Syntax

Setting Effect Default
-Xmo<size> Equivalent to setting both -Xmos and -Xmox not set
-Xmos<size> Set initial size of the tenure area of the heap 75% of -Xms
-Xmox<size> Set maximum size of the tenure area of the heap Same as -Xmx

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

Restriction: If you try to set -Xmo with either -Xmos or -Xmox, the VM does not start, returning an error.

To set the size of the nursery area of the heap, see -Xmn/-Xmns/-Xmnx.

See also