Thursday, September 5, 2013

Java Increase Memeory for Tomcat

On windows: (catalina.bat)
set CATALINA_OPTS/JAVA_OPTS "-Djava.awt.headless=true -Dfile.encoding=UTF-8 
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m 

-XX:MaxPermSize=256m -XX:+DisableExplicitGC"

On linux: create setenv.sh in tomcat/bin folder with the following content
export CATALINA_OPTS/JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8 
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m 
-XX:MaxPermSize=256m -XX:+DisableExplicitGC"

0 comments:

Post a Comment