Skip to content

Instantly share code, notes, and snippets.

@Obydux
Last active July 8, 2025 22:24
Show Gist options
  • Save Obydux/55b967f5dcc00633fe895e5a473363d5 to your computer and use it in GitHub Desktop.
Save Obydux/55b967f5dcc00633fe895e5a473363d5 to your computer and use it in GitHub Desktop.
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

Lithium - A mod designed to drastically improve the general performance of Minecraft without breaking things.

VMP - A mod designed to improve general server performance at high playercount.

C2ME - A mod designed to improve the performance of chunk generation, I/O, and loading. This is done by taking advantage of multiple CPU cores in parallel.

Starlight - A mod that rewrites the light engine to fix lighting performance and lighting errors. (Only useful if using C2ME).

FerriteCore - A mod that reduces the memory usage of Minecraft in a few different ways.

Krypton - A mod that optimizes the Minecraft networking stack and entity tracker.

Noisium - A mod that optimises world generation performance. The improvements lie between a 20-30% speedup when generating new chunks.

RecipeCooldown - A mod that prevents excessive crafting recipe request from the client to lag out the server.

MC-249136 Fix - A mod that implements a minimal hacky fix for MC-249136, a significant server lag spike that occurs when locating buried treasure structures for shipwreck loot.

Other useful mods

Chunky Pregenerator - A mod which pre-generates chunks, quickly and efficiently.

Spark - A performance profiler mod.

View Distance Fix - A mod that fixes the fog when having a higher render distance on the client than on the server. The server tricks the client into thinking that it has the same render distance as the client.

LibreExpFix - A small mod that fixes experience bug after teleporting across dimensions.

Disable Portal Checks - Disables unnecessary portal checks that causes lag.

Ledger = A logging mod similar to CoreProtect.

Carpet - A mod for vanilla Minecraft that allows you to take full control of what matters from a technical perspective of the game.

Carpet Extra - A mod that adds extra features to the Carpet mod.

Configurations

server.properties

sync-chunk-writes=false
max-chained-neighbor-updates=10000
simulation-distance should ideally be 9 if you want all types farms to work as intended, but lowering it will improve performance

Java optimization

JRE

Since 1.18 Minecraft requires Java 17 to run. If you don't have Java 17 installed already you can get it from here.

Java start-up flags

Generate a start-up script for your server here.
If you're using GraalVM you can try out my set of GraalVM start-up flags.

Hosting

I highly recommend BisectHosting for your server needs. They have 20 server locations, advanced DDoS protection and an user-friendly panel for server management. Use code OBYDUX to get 25% off! BisectHosting

@Obydux
Copy link
Author

Obydux commented Apr 11, 2022

This is an excellent resource, thank you for providing it - hope you can keep it up to date as things progress.

Thank you!

@Obydux
Copy link
Author

Obydux commented Apr 11, 2022

I've updated the links to point to Modrinth if possible and added C2ME to the list
Also replaced Recipe Cache with Carpet Fixes since they have options that do it better

@clementinise
Copy link

Why are we back to Aikars Flags, your custom flags was less efficient then Aikars's one?

@Obydux
Copy link
Author

Obydux commented Apr 16, 2022

Why are we back to Aikars Flags, your custom flags was less efficient then Aikars's one?

My flags were never properly tested and I cannot confirm they run better than Aikar's on the latest version of the game and Java

@Obydux
Copy link
Author

Obydux commented Apr 16, 2022

Flags also depend on how much RAM you got and how many cores you have, there is also multiple types or garbage collectors that may work great on some hardware but be bad on another. If you really want to mess around and see which flags fit you the best you can find some here and here

@clementinise
Copy link

Understandable, I will run some tests using the links you provided, also, what about ServerCore mod?

@VishveshC
Copy link

@Obydux Edit suggestion: don't affects vanilla (incorrect grammar) - do not affect vanilla OR don't affect vanilla
Also, this resource is great! :)

@graffixjones
Copy link

This was great. Thanks!
The only issue I had was with in the carpet-fixes.conf, if I enabled optimizedRecipeManager then my furnaces would stop working. Toggled it back to false and they fired right back up.
No big deal though.

@VishveshC
Copy link

VishveshC commented Apr 25, 2022 via email

@Obydux
Copy link
Author

Obydux commented Apr 26, 2022

This was great. Thanks! The only issue I had was with in the carpet-fixes.conf, if I enabled optimizedRecipeManager then my furnaces would stop working. Toggled it back to false and they fired right back up. No big deal though.

Oh yeah I had issues with it as well and forgot to remove it, thanks for reporting

@dongkaso020
Copy link

good

Copy link

ghost commented Oct 15, 2022

The carpet-fixes duplicateBlockUpdatesFix is also a nice optimization feature (doesn't change vanilla behaviors).

@Obydux
Copy link
Author

Obydux commented Oct 17, 2022

The carpet-fixes duplicateBlockUpdatesFix is also a nice optimization feature (doesn't change vanilla behaviors).

Thank you

@Obydux
Copy link
Author

Obydux commented Jan 19, 2023

Removed LazyDFU cause it's useless since 1.19 and added more optimization mods as well as other useful mods to the list.
Also updated the flags and the configs a little

@silverace71
Copy link

Lazy dfu and smooth boot should be included. I run multiple servers together and if you have those mods, it will lower the impact on other servers when starting up. (In some cases it helped against my servers crashing)

@Obydux
Copy link
Author

Obydux commented Jan 19, 2023

Lazy dfu and smooth boot should be included. I run multiple servers together and if you have those mods, it will lower the impact on other servers when starting up. (In some cases it helped against my servers crashing)

"LazyDFU 0.1.3 is compatible with Minecraft 1.19 and above, however Mojang now implements the functionality LazyDFU provides on the server side."

@Obydux
Copy link
Author

Obydux commented Jan 23, 2023

Now suggesting GraalVM Enterprise Edition and different JVM flags. Also added my fork of Hydrogen for 1.19.3 to the experimental mods list.

@rotigod
Copy link

rotigod commented Jan 29, 2023

I'm def stupid i know but how do you go about adding those flags to a fabric server?

@Obydux
Copy link
Author

Obydux commented Jan 29, 2023

I'm def stupid i know but how do you go about adding those flags to a fabric server?

If you're on linux create a start.sh file or start.bat if on Windows and put "java -Xms10G -Xmx10G (insert those flags) -jar fabric-server-launch.jar" inside of it. Replace 10G with the amount of RAM in GB you would like your server to use (don't go above 12GB unless you need to)

@rotigod
Copy link

rotigod commented Jan 30, 2023

I'm def stupid i know but how do you go about adding those flags to a fabric server?

If you're on linux create a start.sh file or start.bat if on Windows and put "java -Xms10G -Xmx10G (insert those flags) -jar fabric-server-launch.jar" inside of it. Replace 10G with the amount of RAM in GB you would like your server to use (don't go above 12GB unless you need to)

alright thanks luv you <3

@IkeTHD
Copy link

IkeTHD commented Feb 12, 2023

Starlight and Phosphor are incompatible with each other though?

its 2 mods doing the same thing, fixing the lighting engine

@VishveshC
Copy link

@Obydux Maybe a bash script for downloading all the mods and automating editing of the config files?
Might be able to help.

@wicivo
Copy link

wicivo commented Mar 10, 2023

@wicivo
Copy link

wicivo commented Apr 22, 2023

@wicivo
Copy link

wicivo commented Apr 24, 2023

optimizedTNT true

Because of this blast parameter, you cannot roll back with the Ledger mod. I was left without a spawn on my server👍

@KistenPM
Copy link

KistenPM commented May 11, 2023

Cant realize why server just shuttin down without context. Im already checked all logs and there is no crash-reports even. If someone know the issue, help pls. When starting to pregenerate chunks its just broking apart. Already tried Chunky and PreGenChunks.
image
image

@wicivo
Copy link

wicivo commented May 13, 2023

try jemalloc

@wicivo
Copy link

wicivo commented May 13, 2023

Maybe it's a C2me problem

@KistenPM
Copy link

KistenPM commented May 15, 2023

try jemalloc

I will, if only i could have understand what is it and how it works/installing. But i will try somehow. Thanks anyway

@wicivo
Copy link

wicivo commented May 15, 2023

try jemalloc

I will, if only i could have understand what is it and how it works/installing. But i will try somehow. Thanks anyway

One second

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment