1.在catalina.sh 中设置JAVA_OPTS,例如:
JAVA_OPTS='-server -Xms1024m -Xmx1024m -XX:NewSize=128m -XX:MaxPermSize=256m -XX:MaxDirectMemorySize=256m -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=5 -Dglobal.config.path=/temp/www/config/
2.在setclasspath.sh中添加:
export CLASSPATH=/temp/www/config:$CLASSPATH