Java Heap Size

This section is applicable only to users of Tomcat.

If you are running a Java Action Processor in Tomcat, and receive a “Java heap space” error message when attempting to display a list that contains a large number of items (10000+), you will need to do the following:

Modify the EXECJAVA statement in the catalina.bat file (Windows) or catalina.sh file (UNIX) to include the -Xms and -Xmx parameters. For example:

%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Xms1024m -Xmx1024m -Djava.library.path="C:\Java\Tomcat55\shared\lib" -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina.base="%CATALINA_BASE%" -Dcatalina.home="%CATALINA_HOME%" -Djava.io.tmpdir="%CATALINA_TMPDIR%" %MAINCLASS% %CMD_LINE_ARGS% %ACTION%