How to reduce lag on a Minecraft server: a practical guide
Low TPS, blocks breaking late and mobs stuck? See how to diagnose lag with spark and tune Paper, distances, chunks and entities step by step.
· 5 min read

How to reduce lag on a Minecraft server without buying more RAM
Every server owner has been through this: the first few days run smoothly, everyone gets excited, three iron farms appear, a redstone system that never turns off, and suddenly blocks break with delay, mobs teleport, and chat arrives in bursts. The most common reaction is to ask for more memory — and, most of the time, that changes nothing.
The starting point of this guide is simple: server lag almost always has a measurable cause. Before touching any configuration, you need to find out whether the problem is tick, chunk, entity, Java garbage collection, or even the player's connection. We'll do this in the right order, using Paper on Minecraft Java 26.3 as a base — the same reasoning applies to Spigot and Purpur.
1. Measure before touching any file
Configuration changed by guesswork tends to make things worse, because you lose the reference for what was normal. Start by collecting numbers in the console or as an operator in-game:
/tps
/spark tps
/spark healthPaper's /tps shows three time windows (1, 5, and 15 minutes) and also MSPT, the time spent per tick. The benchmark is straightforward: 20 TPS is ideal and MSPT above 50 means the server can't complete a tick in 50 ms — that's when the game starts to stutter. If TPS is stable at 20 and the player is still lagging, the problem is the network or their PC, not the server.
The spark is the indispensable complement. It shows what is consuming CPU time:
/spark profiler start --timeout 600
/spark profiler stopRun it during peak time (raid, event, everyone online) and read the report at the link it generates. It's common to find that the culprit is a misconfigured plugin, a giant farm, or a world with thousands of loaded chunks.
2. Run Paper before any optimization
Paper is a Spigot fork with performance fixes and security patches, and it is the most used base on public Java servers. Switching the engine is the highest-impact, lowest-effort adjustment: you keep plugins and worlds, and the server gains fine control over chunks, entities, and spawn. At Mine Hour (minehour.com) you can choose Paper, Spigot, Fabric, Forge, or Vanilla directly from the panel, without reinstalling everything by hand.
3. Adjust render distance and simulation distance
These two numbers are the ones that most affect how much work the server has to do:
- view-distance: how many chunks are sent to the client (what the player sees).
- simulation-distance: how many chunks the server actually processes (mobs, redstone, crops).
In server.properties:
view-distance=8
simulation-distance=6A reduction from 10 to 8 cuts a lot of load on servers with many players spread across the map. Go down one at a time and measure with /tps after each change — every step down has a visual cost, and you want to know exactly where your group's comfortable limit is.
4. Pre-generate the world with Chunky
Generating new terrain while someone explores is one of the biggest TPS thieves there is. The solution is to generate it beforehand, preferably with the server empty:
/chunky world world
/chunky radius 3000
/chunky startChunky fills the area in the background and you follow the progress in chat itself. Do this before launch or overnight, and then expand the radius as the community grows. In worlds that have already been played, keep in mind that pre-generating thousands of blocks consumes time and disk space — you can run it in stages.
5. Entities: what actually weighs
Mobs, items on the ground, item frames, boats, and minecarts cost ticks. Giant mob farms, floors covered in items, and redstone systems that never turn off show up quickly in the spark profile. Two approaches help:
- Reduce entity activation far from players, in
spigot.yml:
world-settings:
default:
mob-spawn-range: 4
entity-activation-range:
animals: 16
monsters: 24
misc: 8- Combine items and limit hoppers. Lowering spawn and activation intervals too much leaves the world "dead" — test with folks online before setting the values.
It's also worth setting a house rule: no leaving items on the ground in the main village and no iron farms without automatic shutoff.
6. JVM flags: beware of ready-made recipes
The famous Aikar's flags are a set of Java startup options that tune the G1 garbage collector to reduce long pauses. They work, but PaperMC's own documentation recommends starting without flags on modern JVMs (Java 17/21) and only applying them if the profile shows GC pauses getting in the way. One point that is always valid:
-Xms4G -Xmx4GKeep minimum and maximum equal — that way the JVM doesn't keep resizing memory. And don't overdo the total: in Paper, 4 to 6 GB usually serves a small community with plugins well; extra RAM doesn't generate TPS.
7. Plugins, backups, and the role of hardware
A heavy plugin takes down more servers than any player. If spark points to a specific plugin, update it, reconfigure it, and if that doesn't solve it, replace it with a lighter alternative. Automatic backups are mandatory, but schedule them for empty hours and avoid running several at the same time.
About infrastructure: giving up machine RAM in exchange for hosting that pauses when the last player leaves makes a lot of sense for groups that play at specific times — the server comes back in seconds when someone joins.
Quick checklist
- Measure with
/tpsandsparkbefore changing anything. - Confirm that you are on an updated Paper.
- Lower
view-distanceandsimulation-distancegradually. - Pre-generate the world with Chunky.
- Review entities in
spigot.ymland redstone farms. - Adjust the JVM only with data in hand.
- Hunt down the culprit plugin in the spark profile.
Conclusion
A smooth server doesn't come from more memory, it comes from diagnosis. Measure first, fix the bottleneck that appeared in the report, and confirm the gain with a new /tps. Once that's done, most friends' servers run smoothly with modest distances, a pre-generated world, and a little discipline in farms — leaving time for what matters, which is playing.
Sources
More posts
How to import a world to the Minecraft serverStep by step to move the single-player world (or another host's) to the server: correct folders, level-name, 26.1 changes and common mistakes.
How to install plugins on a Minecraft server (Paper)Step-by-step guide to installing plugins on your Paper server: where to download them, how to check whether they loaded, which ones are worth getting first, and how to fix the most common errors.
How to configure a Minecraft server: administration guideserver.properties, whitelist, operators, gamerules, backups and version switching: the practical guide to administering your Minecraft server without breaking the world.
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.