How to increase Tomcat Memory in Windows and Linux

Discussion created by Duong_Nguyen-Nhat_2335 on Aug 10, 2016
Hi all,

We already have the documents about how to configure tomcat correctly as in the following link:


However if Customer use One Installer for install ARA/AE in windows or install Tomcat on Linux, they don't have the GUI for Tomcat. 

Therefore they have to modify the (setenv.bat/setenv.sh) file in %CATALINA_HOME%\bin\ folder. 

Below is an example (setenv.bat) in Windows to increase the PermGen Space and the Heapsize. Automic recommend at least 256 m for PermGen Space and as much as possible for Heap size .   

set CATALINA_OPTS= -Xmx8192m -XX:MaxPermSize=256m set JAVA_OPTS= -XX:MaxPermSize=256m set JAVA_HOME="C:\Automic\External.Resources\JDK\jdk1.8.0_45" set JRE_HOME="C:\Automic\External.Resources\JDK\jdk1.8.0_45\jre"
Your command file (catalina.bat/catalina.sh) already has a statement as below:   


if exist "%CATALINA_HOME%\bin\setenv.bat" call "%CATALINA_HOME%\bin\setenv.bat"  

if [ -r "$CATALINA_BASE/bin/setenv.sh" ]; then   . "$CATALINA_BASE/bin/setenv.sh"   elif [ -r "$CATALINA_HOME/bin/setenv.sh" ]; then   . "$CATALINA_HOME/bin/setenv.sh"   fi
Restart your tomcat via Service Manager Dialog or manually. This will take care the rest.