JAVA_OPTS="$JAVA_OPTS -Xms512m -Xmx2048m -XX:MaxPermSize=256m"
JAVA_OPTS="$JAVA_OPTS -Xloggc:dangdang.vgc" #添加此项是打印GC的日志
JAVA_OPTS="$JAVA_OPTS -server -Xnoclassgc -XX:+UseParNewGC -XX:ParallelGCThreads=12 -XX:MaxTenuringThreshold=6 -XX:SurvivorRatio=5"
JAVA_OPTS="$JAVA_OPTS -XX:+UseConcMarkSweepGC -XX:-CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=65"
JAVA_OPTS="$JAVA_OPTS -XX:+UseCMSInitiatingOccupancyOnly -XX:+UseCMSCompactAtFullCollection -XX:+CMSClassUnloadingEnabled"
JAVA_OPTS="$JAVA_OPTS -XX:+DisableExplicitGC -Dsun.rmi.dgc.client.gcInterval=36000009999 -Dsun.rmi.dgc.server.gcInterval=36000009999"
JAVA_OPTS="$JAVA_OPTS -XX:+PrintGCDetails"
#CATALINA_OPTS="-server -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8788"