Manage Java options

You can set certain Java command-line options for the TERR service for managing such settings as the Java heap size.

Configuration property Default setting Description
javaOptions none In systems with a lot of memory, administrators might want to limit the initial or maximum heap size that TERR service can use.
In the following example, the custom property sets the Java initial heap size to 1GB.
javaOptions:-Xms1g
In the following example, the custom property sets the Java initial heap size to 2GB and the maximum heap size to 4GB.
javaOptions:-Xms2g,-Xmx4g

To include multiple java options, delimit the options with a comma and no space. The following examples demonstrate setting an empty property, setting one property, setting two properties, and setting three properties.

javaOptions:
javaOptions:-Xms2g
javaOptions:-Xms2g,-Xmx4g
javaOptions:-Dfoo="foobar",-Xms2g,-Xmx4g
Note: The javaOptions property cannot contain spaces. For example, -Dfoo="foo bar" is not a valid property setting.

For other Java command line options, see the Java documentation.