Modify the Java memory settings
The Java Virtual Machine (JVM) determines the default settings for your Java application:
JAVA_OPTS="-Xms256m -Xmx512m"
The Tomcat server uses CATALINA_OPTS
to set these Java settings when running:
CATALINA_OPTS="-Xms256M -Xmx768M"
You can increase these settings if necessary by following the steps below:
Linux and Mac OS X
Modify the settings file installdir/apache-tomcat/bin/setenv.sh:
$ export CATALINA_OPTS="$CATALINA_OPTS -Xms256M -Xmx768M"
NOTE: You could also modify the Java Virtual Machine (JVM) settings if you prefer.
$ export JAVA_OPTS="$JAVA_OPTS -Xms256M -Xmx768M"
Restart Tomcat after modifying the file:
$ installdir/ctlscript.sh restart tomcat
Windows
Modify the settings file installdir/apache-tomcat/bin/setenv.bat:
$ SET CATALINA_OPTS="%CATALINA_OPTS% -Xms256M -Xmx768M"
NOTE: You could also modify the Java Virtual Machine (JVM) settings if you prefer.
$ SET JAVA_OPTS="%JAVA_OPTS% -Xms256M -Xmx768M"
Reinstall the services after modifying the file, as shown below. Run the following commands from an elevated command prompt:
$ cd installdir $ serviceinstall.bat UNINSTALL $ serviceinstall.bat INSTALL