Changing the JVM Heap Size to Tune API Gateway Performance

The JVM heap or on-heap size indicates how much memory is allotted for server processes. At some point, you might want to increase the minimum and maximum heap size to ensure that the JVM that webMethods API Gateway uses does not run out of memory. In other words, for example, if you notice OutOfMemoryError: Java heap space for Integration Server process, then you have to increase the minimum and maximum heap size to overcome the out of memory error.

The heap size is controlled by the following Java properties specified in the custom_wrapper.conf file.

Property Description
wrapper.java.initmemory The minimum heap size.

The default value is 256 MB.

wrapper.java.maxmemory The maximum heap size.

The default value is 3584 MB.

Your capacity planning and performance analysis should indicate whether you need to set higher maximum and minimum heap size values.

To change the heap size

  1. Open the custom_wrapper.conf file in a text editor.
    You can find the custom_wrapper.conf file in the following location: Installation_directory \profiles\IS_instance_name\configuration\.
  2. Set the wrapper.java.initmemory and wrapper.java.maxmemory parameters so that they specify the minimum and maximum heap size required by webMethods API Gateway.
    For example:
    wrapper.java.initmemory=256 
    wrapper.java.maxmemory=3584
  3. Save and close the file.
  4. Restart webMethods API Gateway.