Increase the Gateway Proxy Java Heap Size

This topic explains how to increase the Java heap size for the Gateway Proxy. You would do this if you have out-of-memory errors that cause the Gateway Proxy server to fail.

About this task

This task references the Oracle Java -Xmssize and -Xmxsize options. For details about the default settings and information about those options in general, see the Oracle Java documentation.

Procedure

  1. Open the /opt/mtx/bin/gateway_proxy_vars.sh file for editing.
  2. Add the Java -Xmssize and -Xmxsize options to this block of code to increase the starting and maximum heap sizes. This example sets the starting size to 1 GB and the maximum size to 2 GB:
    MTX_JVM_ARGS='-Xms1g -Xmx2g'
  3. Save and close the file.