Created
August 9, 2013 00:06
-
-
Save zafarella/6189995 to your computer and use it in GitHub Desktop.
Tomcat jvm param with more aggressive GC and memory optimization. Use with caution on prod.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_OPTS="-Djava.awt.headless=true -Xmx7000M -Xms7000M -XX:MaxPermSize=768M -XX:PermSize=1024M -XX:MaxNewSize=1024M -XX:NewSize=768M -XX:SurvivorRatio=10 -XX:+DisableExplicitGC -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSParallelRemarkEnabled -XX:CMSInitiatingOccupancyFraction=80 -XX:+UseCMSInitiatingOccupancyOnly -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -verbose:gc -XX:+PrintGCDetails -XX:+PrintHeapAtGC -XX:+PrintTenuringDistribution -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
export it at catalina.sh on linux for tomcat 6