Wednesday, February 16, 2011

Apache Tomcat V6x

Issue: OutOfMemoryError: Java heap space, PermGen space
To increase the memory in tomcat, edit catalina.bat file  (<tomcat-install>\bin\catalina.bat) and include
-Xms256m
-Xmx1024m
-XX:MaxPermSize=512m

Example:
set JAVA_OPTS=%JAVA_OPTS% 
-Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
-Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
-Xms256m
-Xmx1024m
-XX:MaxPermSize=512m

No comments:

Post a Comment