How to Increase Maximum Perm Size, Increase Heap using JAVA_OPTS in Tomcat

17-12-2015

Create setenv.bat file in Tomcat bin folder and set value as follows:

For performance reasons, it is recommended that the application is run in Server mode. Apache Tomcat does not run in Server mode by default. You can set the Server mode by using the JVM -server parameter. You can set the JVM parameter in the JAVA_OPTS variable in the environment variable in the setenv.bat file.

The following is an example of a setenv.bat file:

set "JAVA_OPTS=%JAVA_OPTS% -Xms128m -Xmx1024m -XX:MaxPermSize=256m -server"

© 2019 All rights reserved. Codesenior.COM