Those are the flags I use

-XX:+UseZGC
-XX:+ZGenerational
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200
-XX:+UnlockExperimentalVMOptions
-XX:+DisableExplicitGC
-XX:+AlwaysPreTouch
-XX:G1NewSizePercent=40
-XX:G1MaxNewSizePercent=50
-XX:G1HeapRegionSize=16M
-XX:G1ReservePercent=15
-XX:G1HeapWastePercent=5
-XX:G1MixedGCCountTarget=4
-XX:InitiatingHeapOccupancyPercent=20
-XX:G1MixedGCLiveThresholdPercent=90
-XX:G1RSetUpdatingPauseTimePercent=5
-XX:SurvivorRatio=32
-XX:+PerfDisableSharedMem
-XX:MaxTenuringThreshold=1
-Dusing.aikars.flags=https://mcflags.emc.gs
-Daikars.new.flags=true

Flags are from https://github.com/TheUsefulLists/UsefulMods/blob/main/JavaArgumentsOptimization.md . With GC from https://github.com/Radk6/MC-Optimization-Guide/blob/main/mods-n-stuff/Java-things.md#jvm-arguments .

I get this message when starting MC with my graalvm-jdk-21.0.4+8.1: [0.003s][warning][gc,jvmci] Setting EnableJVMCI to false as selected GC does not support JVMCI: z gc

What do?

by TheFumingatzor

Leave A Reply