cabbes

Recommended JVM settings

Blog Post created by cabbes on Nov 15, 2019

Below you will find the Blackboard recommended JVM settings with 8gb and 16gb of heap.

 

Heap SizeSettings
8 gb

## java virtual machine config - java bound processes ##

bbconfig.min.heapsize.tomcat=8192m

bbconfig.max.heapsize.tomcat=8192m

bbconfig.max.stacksize.tomcat=1M

 

bbconfig.jvm.options.extra.tomcat=-XX:NewSize=2048m -XX:MaxNewSize=2048m -XX:+UseTLAB -XX:SurvivorRatio=4 -XX:+UseCompressedOops -Xss512k -XX:+PrintVMOptions -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCTaskTimeStamps -XX:+PrintCommandLineFlags -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+AlwaysPreTouch -XX:+DoEscapeAnalysis -Xverify:none -XX:+UseMontgomeryMultiplyIntrinsic -XX:+UseMontgomerySquareIntrinsic -XX:MetaspaceSize=768m -XX:MaxMetaspaceSize=1536m

bbconfig.jvm.options.gc=-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=45 -XX:+UseStringDeduplication -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M

## hotspot jvm / JIT compiler code cache sizing ##

bbconfig.jvm.options.codecache.reserved=384m

bbconfig.jvm.options.codecache.initial=256m

16 gb

## java virtual machine config - java bound processes ##

bbconfig.min.heapsize.tomcat=16384m

bbconfig.max.heapsize.tomcat=16384m

bbconfig.max.stacksize.tomcat=1M

 

bbconfig.jvm.options.extra.tomcat=-XX:NewSize=4096m -XX:MaxNewSize=4096m -XX:+UseTLAB -XX:SurvivorRatio=4 -XX:+UseCompressedOops -Xss512k -XX:+PrintVMOptions -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCDateStamps -XX:+PrintGCTaskTimeStamps -XX:+PrintCommandLineFlags -XX:+PrintGCApplicationStoppedTime -XX:+PrintGCApplicationConcurrentTime -XX:+AlwaysPreTouch -XX:+DoEscapeAnalysis -Xverify:none -XX:+UseMontgomeryMultiplyIntrinsic -XX:+UseMontgomerySquareIntrinsic -XX:MetaspaceSize=768m -XX:MaxMetaspaceSize=1536m

bbconfig.jvm.options.gc=-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:InitiatingHeapOccupancyPercent=45 -XX:+UseStringDeduplication -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=100M

## hotspot jvm / JIT compiler code cache sizing ##

bbconfig.jvm.options.codecache.reserved=384m

bbconfig.jvm.options.codecache.initial=256m

Outcomes