Setting Gateway daemon JVM options

Startup options are used to set the properties of the Gateway daemon JVM, such as heap size and Java™ properties.

UNIX and Linux

When starting the Gateway daemon in console mode, JVM options can be specified in the parameters passed to the ctgstart command. Each JVM option must be prefixed with -j. For more information see Starting the Gateway daemon in console mode. For example, to set the maximum JVM heap size to 512MB:
ctgstart -j-Xmx512M
When running the Gateway daemon as a background process, JVM options can be specified in the CTGD_PARAMS variable in the ctgd configuration file ctgd.conf. Each JVM option must be prefixed with -j. For more information see Running the Gateway daemon as a background process.
For example, to set the maximum JVM heap size to 512MB:
CTGD_PARAMS=-j-Xmx512M

Windows

JVM options can be specified in the parameters set using the ctgservice command. Each JVM option must be prefixed with -j, and all options must be prefixed with -A when using the ctgservice command. For more information see ctgservice command reference.

For example, to set the maximum JVM heap size to 512MB:
ctgservice -R -A-j-Xmx512M

Concept Concept

Feedback


Timestamp icon Last updated: Tuesday, 19 November 2013


https://ut-ilnx-r4.hursley.ibm.com/tg_latest/help/topic/com.ibm.cics.tg.doc//ctgunx/set_jvm_options.html