7 articles
Minecraft server performance
Why a server lags and how to find the cause, pre-generating the world and what an anticheat costs.
- Why your Minecraft server lags — and how to find the causeFirst work out what's lagging: the server (low TPS), the network (ping) or the player's computer (FPS). If it's the server, measure MSPT and take a spark profile — it shows what's eating your 50 ms tick.7 min read
- TPS and MSPT: what they mean and which numbers are normalTPS is how many ticks the server completes per second, MSPT is how many milliseconds a tick takes. Normal is 20 TPS, and for that every tick has to fit into 50 ms. Here's where to see these numbers, which values are worrying and what happens when the server can't keep up.7 min read
- The spark profiler: finding what slows your server downspark is a profiler for Minecraft servers: it shows where tick time goes, how much each plugin costs, and how memory and the garbage collector behave. Paper 1.21 and newer already has it built in. Here are the commands, the flags and how to read a report.8 min read
- Paper optimization: which settings to tune and what they costA reference for the settings that change a Paper server's load: server.properties, paper-world-defaults.yml, paper-global.yml, spigot.yml and bukkit.yml. Defaults come from Paper's documentation. Every setting has a price: farms, redstone and vanilla mechanics.9 min read
- JVM flags for a Minecraft server: what to use and whyA server's start command is a Java version, an amount of memory and, optionally, garbage collector settings. Here's what Paper's docs advise: equal -Xms and -Xmx, Aikar's flags for G1 and what each of them does, plus when large pages and ZGC are worth trying.9 min read
- Pre-generating your world: stop chunk generation lagGenerating new chunks is one of the heaviest things a server does. Set a world border, pre-generate everything inside it with Chunky before launch — and players on elytras won't tank your TPS anymore.6 min read
- How much does an anticheat cost your server — and how to checkAn anticheat barely loads the server when it checks packets on network threads, and eats into the tick when it works on the main thread. You can check which one you have in 10 minutes with the spark profiler — no need to take anyone's word for it.7 min read
Run the best anticheat for modern Minecraft
DGuard catches all 47 kinds of cheats in our comparison — the closest rival, Intave, has 27. Full protection on every plan, free up to 30 players online.