Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to increase JVM memory on Tomcat 8

does someone knows how to increase the JVM on Tomcat 8? cause it changed from the previously version, I use to change it into the Tomcat/bin/catalina file in the following parameter:

set LOGGING_CONFIG=-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" -Xms1024M -Xmx2048M

but for Tomcat 8 is not working anymore. Thanks in advance

like image 521
Mario Echeverría Avatar asked Dec 15 '22 08:12

Mario Echeverría


1 Answers

You need to create file under Tomcat home \ bin directory

if windows then setenv.bat

and if linux/unix then setenv.sh

and write below memory configuration into file

export CATALINA_OPTS="$CATALINA_OPTS -Xms512m"
export CATALINA_OPTS="$CATALINA_OPTS -Xmx8192m"
export CATALINA_OPTS="$CATALINA_OPTS -XX:MaxPermSize=256m"

Please refer this link:

http://crunchify.com/how-to-change-jvm-heap-setting-xms-xmx-of-tomcat/

like image 185
Pankaj Pandey Avatar answered Feb 16 '23 00:02

Pankaj Pandey