How to reduce Minecraft server lag: a practical guide
TPS dropping, blocks reverting and mobs freezing? See how to diagnose and fix Minecraft server lag with Paper, Java flags, view-distance and pre-generation.
· 7 min read

How to reduce Minecraft server lag: a practical guide
Everyone who has ever opened a server for friends knows the scene: someone shouts "it's lagging," blocks snap back after being broken, mobs stand still in the air, and elytra exploration turns into a screen of empty chunks. The most common reaction is to open the panel and throw more RAM at it. Most of the time that solves nothing — it just costs money.
This guide is the roadmap that works in practice: first measure, then adjust what actually weighs. We'll talk about TPS, MSPT, Java flags, view-distance, pre-generation with Chunky, entity limits and the performance mods and plugins that are worth it in 2026.
First of all: find out which lag is yours
"Lag" has become a word that means three different things. If you attack the wrong problem, you'll be fiddling with settings for nothing.
- Server lag (TPS/MSPT): everyone feels it at the same time. Blocks take a while to break, mobs freeze, the time of day seems to drag.
- Connection lag (ping): only one or a few players feel it. The rest of the server is normal, but whoever has bad internet sees everything teleporting.
- Client lag (FPS): the server is fine, but your PC struggles to render. Then the solution is in your game, not on the server.
Minecraft Java tries to run the world 20 times per second (20 TPS). Each of those cycles has a 50 ms budget. When the server can't finish the tick within that time, TPS drops and you feel the delay.
On Paper, two commands are enough to start diagnosing:
/tps
/spark tpsThe /tps shows TPS per world. Consistently below 15 means real lag. spark also shows MSPT — milliseconds per tick. If MSPT goes above 50, the server is falling behind.
Step 1: measure before you touch anything
spark (a free plugin, available for Paper and Fabric) is the community's standard tool for finding out what is holding up the tick. It doesn't guess: it shows which part of the code is consuming time.
/spark profiler start --timeout 60
/spark profiler stop
/spark heapsummaryLet it run for about 60 seconds during the laggy moment — preferably while someone is exploring, or when the server has its normal number of players. The result opens in the browser and you see three classic suspects:
- Chunk generation dominating the profile: people are exploring new terrain.
- Entity ticking (mobs, items on the ground, iron villagers, giant farms).
- Garbage Collection (Java's garbage collector) showing up with long pauses.
Each one has a different solution. Write down what showed up before moving on.
Step 2: run Paper (or Purpur), up to date
Vanilla is great for playing, but it isn't optimized for servers. Paper takes Vanilla's code and improves precisely the parts that weigh the most: chunk loading, entity ticking, networking and pathfinding. It's free, maintains compatibility with Spigot/Bukkit plugins and is the de facto standard in the community.
Purpur goes a step further, with extra settings (such as fine control over mob behavior). If you don't need those options, Paper is enough.
About the version: the stable Java Edition version today is 26.3 (the "Wilderness Bound" drop, from September 2026). The 26.4 snapshots ("The Deep Freeze") are in testing and bring things like Vulkan as the default graphics backend — but it's a snapshot. A production server runs on the stable version, always with the latest Paper build for that version, because build updates fix performance and security bugs.
Step 3: the Java flags (Aikar's flags)
If you run the server on a VPS or on your own machine, the startup argument makes a huge difference — especially against those half-second freezes caused by GC. The most widely used set is Aikar's flags, designed for the G1GC collector:
java -Xms6G -Xmx6G -XX:+UseG1GC -XX:+ParallelRefProcEnabled \
-XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions \
-XX:+DisableExplicitGC -XX:+AlwaysPreTouch \
-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 \
-jar paper.jar --noguiThree important points:
- Replace
6Gwith the total RAM you allocated to the server, keeping-Xmsequal to-Xmx. A heap that grows and shrinks within a session causes long pauses. -XX:+AlwaysPreTouchreserves the memory at boot: the server takes a little longer to start and doesn't suffer from allocation afterward.- Don't overdo RAM. Above around 12 GB, G1 starts having longer pauses; on small servers, 4 to 6 GB is usually enough. More RAM does not increase TPS — a fast single-core CPU does.
Step 4: view-distance and simulation-distance
This is the most common confusion. Each player loads (2 × distance + 1)² chunks around them: at distance 10 that's 441 chunks; at distance 5, only 121. It's a brutal difference in CPU and network.
view-distance= the terrain the server sends for the player to see.simulation-distance= what the server processes (mobs walking, crops growing, redstone).
Lowering view-distance makes the horizon shorter for the player. Lowering simulation-distance greatly relieves the CPU, but it affects how farms work. That's the trade-off you need to decide.
In server.properties:
view-distance=8
simulation-distance=6On Paper, simulation-distance is set in config/paper-world-defaults.yml:
chunks:
simulation-distance:
default: 6
per-world: {}Start with view 8 and simulation 6 for a server for friends. If TPS is locked at 20, go up one step at a time and measure with /tps after each change.
Step 5: pre-generate the world with Chunky
Chunk generation is the heaviest task the server does. When five people fly off with elytra in different directions, TPS plummets — not because the server is weak, but because it is generating terrain in real time for everyone.
The solution is to generate beforehand. Chunky is the most widely used pre-generation plugin/mod (it exists for Paper, Fabric, Forge and NeoForge):
/chunky radius 3000
/chunky start
/chunky pause
/chunky continue
/chunky cancel
/chunky world minecraft:overworldStep by step:
- Back up the world. Always.
- Set the radius in blocks with
/chunky radius. A radius of 3000 already gives you a huge area to start with. - Run
/chunky startand let the server generate — preferably during an empty time slot, or while you do something else. - Follow along in the chat itself; if you need to play, use
/chunky pauseand then/chunky continue. - Repeat for the Nether and the End with
/chunky world.
After pre-generation, exploring stops being a lag event. It's the most cost-effective tweak for a survival server with friends.
Step 6: entities, spawn and items on the ground
If your spark profile showed entity tick at the top, the problem isn't the world: it's mobs and accumulated items.
In bukkit.yml:
spawn-limits:
monsters: 50
animals: 10
water-animals: 5
ambient: 3In spigot.yml, reduce spawn frequency and merge items on the ground:
world-settings:
default:
merge-radius:
item: 4.0
exp: 3.0
ticks-per:
monster-spawns: 3
animal-spawns: 200
autosave: 6000In config/paper-world-defaults.yml, you can limit the area where mobs stay "active":
entity-activation-range:
animals: 24
monsters: 28
raiders: 48
water: 16
villagers: 32
misc: 8And in-game, two commands that solve a lot:
/gamerule maxEntityCramming 24
/gamerule randomTickSpeed 3Be careful with "clear lag" plugins that delete items on the ground every so often. They seem to fix things because TPS rises the next instant, but the gain is temporary and the damage is real: someone loses a wither drop or a dungeon kit.
Step 7: performance mods on Fabric
If your server is modded, the bottleneck changes. The most-used server mods are:
- Lithium — optimizes AI, physics and server-side ticks.
- FerriteCore — reduces the game's memory usage.
- Krypton — improves the network layer (good for servers with very high ping).
- ModernFix — speeds up boot and reduces memory spikes.
- Chunky — world pre-generation, also available as a mod version.
On the client side, Sodium and company affect FPS much more than any server tweak — and it's worth remembering: a player's FPS problem isn't solved with more RAM on the host.
Install one at a time, restart and measure with /spark tps. That way you know what actually worked.
Final checklist
/tpsand/sparkto find out the type of lag.- Paper updated to the stable version (26.3 today).
- Java flags with
-Xmsequal to-Xmx. - view-distance 8 and simulation-distance 6 to start.
- World pre-generated with Chunky before opening it to everyone.
- Spawn limits, merge-radius and activation range adjusted.
- One performance mod or plugin at a time, measuring afterward.
Conclusion
In most cases, lag isn't a lack of hardware — it's inherited Vanilla configuration and a world being generated at the wrong time. Measuring with spark, pre-generating the map and calibrating view-distance already solves most friends' servers. If you'd rather not deal with VPS, ports and manual backups, you can spin up the server on Mine Hour in under a minute, with your own subdomain and automatic backups, and focus only on what matters: playing.
Sources
- Minecraft Server Lag: Causes and Fixes | Nodesty
- Fix Minecraft Server Lag in 2026 — Aikar Flags, View Distance & Spark | Unique Team
- Java Runtime Flags Explained for Minecraft Servers (-XX, G1GC, ZGC) | Unique Team
- Minecraft Java 26.3 on our servers: vanilla, Paper, Fabric, Forge and NeoForge | Supercraft
- Chunks in Minecraft: how view-distance affects RAM and TPS | Fly-Serv
- Chunky commands: how to pre-generate the world in Minecraft | Zentex
- How Much RAM Does a Minecraft Server Need? | ChicagoServers
- How to optimize your Minecraft server without ruining your farms | SharpHeberg
More posts
Building and survival games to play with friendsSeven building and survival games to play with friends: what each one does best, how many players they support, and how to keep the world online without depending on the host.
Minecraft server to play with friends: 2026 guideStep-by-step guide to creating a Minecraft server and playing with friends: Java vs Bedrock, RAM, whitelist, invites, crossplay on mobile and common errors.
Games to play with friends: 12 co-op and Minecraft-like optionsList of games to play with friends: online and local co-op, Minecraft-like sandboxes, and what each one does best for your group.
Multiple worlds on the same Minecraft server: a practical guideLearn how to run lobby, parkour, minigames and adventure in separate worlds on the same Minecraft server, keeping maps, seeds and datapacks in the right place.