Skip to content

CAUTION: This site hosts draft documentation for the next release. For published content of the latest release, visit www.eclipse.org/openj9/docs

-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 -Xmx minus -Xmns

where -Xmx refers to the maximum heap size and -Xmns refers to the minimum size of the nursery area of the heap.

Although the tenure and nursery areas of the heap have independent maximum sizes, -Xmox and -Xmnx, the sum of their current sizes cannot be larger than -Xmx.

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

For more information about the <size> parameter, see Using -X command-line options.

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

See also