Added JVM arguments to for GC tuning.

This commit is contained in:
Harrison Deng 2022-05-17 04:48:47 -05:00
parent bf5e4bfcbf
commit 8ddf79b7cf

View File

@ -6,4 +6,16 @@
# A good default for a modded server is 4GB. # A good default for a modded server is 4GB.
# Uncomment the next line to set it. # Uncomment the next line to set it.
-Xmx8G -Xmx8G
-Xms8G
-XX:+UseG1GC
-XX:ParallelGCThreads=12
-XX:+DisableExplicitGC
-Dsun.rmi.dgc.server.gcInterval=2147483646
-XX:+UnlockExperimentalVMOptions
-XX:G1NewSizePercent=20
-XX:G1ReservePercent=20
-XX:MaxGCPauseMillis=50
-XX:G1HeapRegionSize=32M
-XX:SurvivorRatio=16
-Xnoclassgc