From 8ddf79b7cf08f3bb91765a44c8d7dd3839638df5 Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Tue, 17 May 2022 04:48:47 -0500 Subject: [PATCH] Added JVM arguments to for GC tuning. --- user_jvm_args.txt | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/user_jvm_args.txt b/user_jvm_args.txt index ae55b6d..5e0f075 100644 --- a/user_jvm_args.txt +++ b/user_jvm_args.txt @@ -6,4 +6,16 @@ # A good default for a modded server is 4GB. # Uncomment the next line to set it. --Xmx8G \ No newline at end of file +-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 \ No newline at end of file