Java Docker Images & JVM Arguments
Reference: https://github.com/Mukul1127/Minecraft-Performance-Flags-Benchmark
If you are on Java 11+ (1.12+) weWe recommend the following arguments for all Servers
-XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine -XX:+AlwaysPreTouch -XX:+DisableExplicitGC -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=400M -XX:NonNMethodCodeHeapSize=12M -XX:ProfiledCodeHeapSize=194M -XX:NonProfiledCodeHeapSize=194M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseVectorCmov -XX:+PerfDisableSharedMem -XX:+UseFastUnorderedTimeStamps -XX:+UseG1GC -XX:MaxGCPauseMillis=130 -XX:+DisableExplicitGC -XX:+AlwaysPreTouch50 -XX:G1NewSizePercent=2830 -XX:G1MaxNewSizePercent=70 -XX:G1HeapRegionSize=16M4M -XX:G1ReservePercent=InitiatingHeapOccupancyPercent=20 -XX:G1MixedGCCountTarget=3 -XX:InitiatingHeapOccupancyPercent=10 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=0 -XX:SurvivorRatio=32 -XX:MaxTenuringThreshold=1 -XX:G1SATBBufferEnqueueingThresholdPercent=30 -XX:G1ConcMarkStepDurationMillis=5.0 -XX:G1ConcRefinementServiceIntervalMillis=150 -XX:G1ConcRSHotCardLimit=16 -XX:AllocatePrefetchStyle=3If you are on Java 8 (<1.12) we recommend the following arguments
-XX:+UnlockExperimentalVMOptions -XX:+UnlockDiagnosticVMOptions -XX:+AlwaysActAsServerClassMachine6 -XX:+ParallelRefProcEnabled -XX:+DisableExplicitGCUseStringDeduplication -XX:+AlwaysPreTouch -XX:+PerfDisableSharedMem -XX:+AggressiveOpts -XX:+UseFastAccessorMethods -XX:MaxInlineLevel=MaxHeapFreeRatio=15 -XX:MaxVectorSize=32MinHeapFreeRatio=5 -XX:+UseCompressedOopsDjava.net.preferIPv4Stack=true -XX:ThreadPriorityPolicy=1Dfml.ignoreInvalidMinecraftCertificates=true -XX:+UseDynamicNumberOfGCThreads -XX:NmethodSweepActivity=1 -XX:ReservedCodeCacheSize=350M -XX:-DontCompileHugeMethods -XX:MaxNodeLimit=240000 -XX:NodeLimitFudgeFactor=8000 -XX:+UseFPUForSpillingDfml.ignorePatchDiscrepancies=true
Full default forced arguments (can't be modified)
java -Xmx{{SERVER_MEMORY}}M {{JVM_ARGS}} -Dterminal.jline=false -Dterminal.ansi=true -jar server.jar
Java Docker Images
If you get the following error, you are most likely on the incorrect Docker Java image for the MC version you are running
Available Docker Images Listed Below


