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
JAVA_HOME=/usr/lib/jvm/jdk1.8.0_131/
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: