Providing more memory on Tomcat

In case of core dumps or Java out-of-memory errors when a Operational Decision Manager module is running, you can increase the memory available to the Tomcat application server.

Symptoms

You have core dumps or Java out-of-memory errors when the application is running.

Resolving the problem

You can make more memory available to the Tomcat application server by increasing the maximum heap size for the Java virtual machine (JVM) in the catalina script. To determine the appropriate heap size for the environment, submit your applications to stress tests.

Resolving the problem

Procedure

To increase the memory settings for Tomcat:

  1. Stop your application server.
  2. Open the catalina script file.
  3. Find the following line and alter the values to suit your server usage.

You can override the default heap size by using the -Xms and -Xmx switches to specify the initial and maximum sizes.

This example also sets the permanent generation heap to a maximum value of 128 MB.
%JAVA_HOME%\bin \java -Xms128m -Xmx512m -XX:MaxPermSize=128m

  1. Save the file and restart the application server.