etil2jz / etil-minecraft-flags

An extra optimization to Aikar flags, the JVM arguments that make your Minecraft server smooth.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

java17 can't use this flags

fattoolman opened this issue · comments

"Cannot use JVMCI compiler: No JVMCI compiler found"
https://openjdk.java.net/jeps/410

I'm using graalvm-ce-java17-linux-amd64-22.0.0.2 and I've had issues with these flags:

# this kills the vm
-XX:+AlwaysPreTouch

# this doesn't seem to work for the binary I downloaded
-Dgraal.CompilerConfiguration=enterprise
# this means that -Dgraal.* doesn't work.

The flags I've ended up using:

-XX:+UseG1GC
-XX:+ParallelRefProcEnabled
-XX:MaxGCPauseMillis=200

-XX:+DisableExplicitGC
# this kills the vm
#-XX:+AlwaysPreTouch

-XX:+UnlockExperimentalVMOptions
-XX:+UnlockDiagnosticVMOptions
-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

-Dusing.aikars.flags=https://mcflags.emc.gs
-Daikars.new.flags=true
-XX:-UseBiasedLocking
-XX:+EnableJVMCIProduct
-XX:+EnableJVMCI
-XX:+UseJVMCICompiler
-XX:+EagerJVMCI
-XX:UseAVX=2
-XX:+UseStringDeduplication
-XX:+UseFastUnorderedTimeStamps
-XX:+UseAES
-XX:+UseAESIntrinsics
-XX:UseSSE=4
-XX:AllocatePrefetchStyle=1
-XX:+UseLoopPredicate
-XX:+RangeCheckElimination
-XX:+EliminateLocks
-XX:+DoEscapeAnalysis
-XX:+UseCodeCacheFlushing
-XX:+UseFastJNIAccessors
-XX:+OptimizeStringConcat
-XX:+UseCompressedOops
-XX:+UseThreadPriorities
-XX:+OmitStackTraceInFastThrow
-XX:+TrustFinalNonStaticFields
-XX:ThreadPriorityPolicy=1
-XX:+UseInlineCaches
-XX:+RewriteBytecodes
-XX:+RewriteFrequentPairs
-XX:+UseNUMA
-XX:-DontCompileHugeMethods
-XX:+UseCMoveUnconditionally
-XX:+UseFPUForSpilling
-XX:+UseNewLongLShift
-XX:+UseVectorCmov
-XX:+UseXMMForArrayCopy
-XX:+UseXmmI2D
-XX:+UseXmmI2F
-XX:+UseXmmLoadAndClearUpper
-XX:+UseXmmRegToRegMoveAll

-Dfile.encoding=UTF-8
-Djdk.nio.maxCachedBufferSize=262144
#-Dgraal.TuneInlinerExploration=1
#-Dgraal.CompilerConfiguration=enterprise
#-Dgraal.UsePriorityInlining=true
#-Dgraal.Vectorization=true
#-Dgraal.OptDuplication=true
#-Dgraal.DetectInvertedLoopsAsCounted=true
#-Dgraal.LoopInversion=true
#-Dgraal.VectorizeHashes=true
#-Dgraal.EnterprisePartialUnroll=true
#-Dgraal.VectorizeSIMD=true
#-Dgraal.StripMineNonCountedLoops=true
-Dgraal.SpeculativeGuardMovement=true
#-Dgraal.InfeasiblePathCorrelation=true
--add-modules jdk.incubator.vector

I'm way late to this, but yall need to download EE, not CE