Skip to content

Instantly share code, notes, and snippets.

@zafarella
Last active December 20, 2015 19:09
Show Gist options
  • Save zafarella/6181489 to your computer and use it in GitHub Desktop.
Save zafarella/6181489 to your computer and use it in GitHub Desktop.
jvm tuning
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 -Xloggc:$LOG_TOMCAT_GC -Dcom.sun.management.jmxremote=true -Dcom.sun.management.jmxremote.port=50000 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=true -Dcom.sun.management.jmxremote.password.file=$CATALINA_HOME/conf/jmxremote.passwd -Dcom.sun.management.jmxremote.access.file=$CATALINA_HOME/conf/jmxremote.access -XX:+CMSClassUnloadingEnabled -XX:+CMSPermGenSweepingEnabled"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment