Automic Continuous Delivery Automation

 View Only

How to increase Tomcat Memory in Windows and Linux

  • 1.  How to increase Tomcat Memory in Windows and Linux

    Posted Aug 10, 2016 12:17 AM
    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/ 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/ already has a statement as below:   


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

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