Apache - How to increase heap size tomcat, What are Xms and Xmx
How to increase heap size tomcat
what are Xms and Xmx values in apache tomcat?A Java Virtual Machine on 32-bit operating systems typically has a maximum heap size of 64Mb. The JVM heap space is where all Java objects are stored, as well as memory used by the garbage collector.
The Java Virtual Machine takes two command line arguments which set the initial and maximum heap sizes:
-Xms and -Xmx
To increase minimum and maximum heap size for Tomcat applications set the CATALINA_OPTS environment variable before starting Tomcat.
Just add the bellow line in {catalina.home}/bin/catalina.sh.
export CATALINA_OPTS=”-Xms256m -Xmx512m”OR
export JAVA_OPTS=”-Xms256m -Xmx512m”Here,
-Xms256m(minimum of 256 MB)
-Xms512m(maximum of 512 MB)
The topic on Apache - How to increase heap size tomcat is posted by - Math
Hope you have enjoyed, Apache - How to increase heap size tomcatThanks for your time