Skip to content

Instantly share code, notes, and snippets.

@icicimov
Created August 21, 2018 06:51
Show Gist options
  • Save icicimov/f072128a61ad418f0c04756c30b4c936 to your computer and use it in GitHub Desktop.
Save icicimov/f072128a61ad418f0c04756c30b4c936 to your computer and use it in GitHub Desktop.
JAVA_OPTS="-Djava.awt.headless=true -server \
-XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/log/tomcat/java_pid%p.hprof \
-XX:MetaspaceSize=256m -XX:MaxMetaspaceSize=512m \
-XX:+UseCompressedClassPointers \
-XX:CompressedClassSpaceSize=256m -XX:+AggressiveOpts \
-XX:-UseCompressedOops -XX:+UseStringDeduplication \
-XX:+UseG1GC -XX:MaxGCPauseMillis=300 \
-XX:InitiatingHeapOccupancyPercent=45 -XX:G1ReservePercent=15 \
-Xms4G -Xmx4G -Des.cluster.name=encsearchtupoc"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment