Menu

Tomcat7

Brice Bonheur

You may encounter errors using tomcat7.
To work around this problem it is necessary to increase the size of work tomcat7.

Create file $CATALINA_BASE/bin/setenv.sh
on ubuntu :

sudo nano /usr/share/tomcat7/bin/setenv.sh

And add:

#!/bin/sh

#Setup classpath options
#CLASSPATH
#export CLASSPATH

#Setup java vm options
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”
export JAVA_OPTS