# user_jvm_args.txt
#
# Drop this file in the server's root directory (next to run.bat/run.sh,
# mods/, config/, etc.) and NeoForge's own launch scripts will pick it up
# automatically -- no editing of run.bat/run.sh/start scripts needed.
#
# Lines starting with # are comments and are ignored.
#
# -Xms/-Xmx are set to match the pack's own recommendedRam (10240MB,
# see manifest.json) -- Aikar's own guidance is to set min and max equal
# to avoid heap-resize pauses. Adjust both together if you change the
# server's allocated memory later; don't change one without the other.

-Xms10240M
-Xmx10240M
-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=30
-XX:G1MaxNewSizePercent=40
-XX:G1HeapRegionSize=8M
-XX:G1ReservePercent=20
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=15
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
