Wednesday 21 September 2016

How to Change JVM Heap settings of apache tomcat in Linux


1. Go to apache installation folder

                    # cd /home/apache-tomcat-8.5.4/bin/

2. Edit setenv.sh as follows

                    # vim setenv.sh

export CATALINA_OPTS="$CATALINA_OPTS -Xms1024m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx1024m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=512m"

3. Save the file

4. Execute the command

                       # ./catalina.sh

No comments:

Post a Comment