Friday, June 8, 2012

Tomcat change heap size

cd /home/soa/software/apache-tomcat-7.0.27/bin
vi catalina.sh


just before "if [ -z "$LOGGING_MANAGER" ]; then" insert:

JAVA_OPTS="$JAVA_OPTS -Xms536m -Xmx736m -XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m -XX:MaxPermSize=256m"


No comments: