From 22ad9ed14db6b8ae5ea9c659d49287b377657bae Mon Sep 17 00:00:00 2001 From: Lemma Brummel <6722691+LemmaEOF@users.noreply.github.com> Date: Wed, 24 Apr 2024 13:09:17 -0700 Subject: [PATCH] no aikars flags --- README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/README.md b/README.md index 505dcf7..c157f13 100644 --- a/README.md +++ b/README.md @@ -579,8 +579,7 @@ If this option is greater that `0`, players above the set y level will be damage # Java startup flags [Vanilla Minecraft and Minecraft server software in version 1.19 requires Java 17 or higher](https://docs.papermc.io/java-install-update). Oracle has changed their licensing, and there is no longer a compelling reason to get your java from them. Recommended vendors are [Adoptium](https://adoptium.net/) and [Amazon Corretto](https://aws.amazon.com/corretto/). Alternative JVM implementations such as OpenJ9 or GraalVM can work, however they are not supported by Paper and have been known to cause issues, therefore they are not currently recommended. -Your garbage collector can be configured to reduce lag spikes caused by big garbage collector tasks. You can find startup flags optimized for Minecraft servers [here](https://docs.papermc.io/paper/aikars-flags) [`SOG`]. Keep in mind that this recommendation will not work on alternative JVM implementations. -It's recommended to use the [flags.sh](https://flags.sh) startup flags generator to get the correct startup flags for your server +On Java 17, it is recommended you set `-XX:+UseShenandoahGC` for garbage collection, and on Java 21 it is recommended you set `-XX:+UseZGC -XX:+ZGenerational`. The commonly-shared Aikars flags are [not recommended](https://noflags.sh/about/) for modern Java versions and will have a significant impact on your performance. In addition, adding the beta flag `--add-modules=jdk.incubator.vector` before `-jar` in your startup flags can improve performance. This flag enables Pufferfish to use SIMD instructions on your CPU, making some maths faster. Currently, it's only used for making rendering in game plugin maps (like imageonmaps) possibly 8 times faster.