Monday, November 26, 2012

Tomcat Java Options

On a Unix based system the easiest way to set custom Java options for Tomcat is by adding a file in the <CATALINA_HOME>/bin directory named setenv.sh.  The catalina.sh script checks for the existence of this file and executes it if it exists. Inside this file you would add something similar to the following:

export JAVA_OPTS="-server -Xms2048 -Xmx4096"


No comments:

Post a Comment