What is Minecraft server lag?
Server lag means the server can't keep up with simulating the world: its TPS (ticks per second) drops below 20, so mined blocks reappear, mobs teleport and items take a moment to drop. It is a different problem from a slow connection (high ping) or a slow PC (low FPS), even though players call all three "lag".
| TPS | Ping | FPS | |
|---|---|---|---|
| What it measures | How fast the server runs the world | How long data takes between player and server | How smoothly the player's game draws the picture |
| Good value | 20 (that's the maximum) | Under 50 ms is great, under 100 ms is fine | 60 or more |
| Who it affects | Everyone on the server at once | One player (or players from one region) | One player |
| Typical symptoms | Blocks come back after mining, mobs jump, crops and furnaces slow down | Rubber-banding, hits register late, chat lags | Choppy picture, stutter when turning |
| Where to fix it | On the server | Connection, server location | The player's PC: settings, FPS mods |
A quick rule: if everyone lags at the same moment, it's the server; if only one player lags, it's their connection or PC.
How to check what kind of lag you have
Open the server console and type spark tps – if TPS is 20 and the median tick is under 50 ms, the server is fine and the problem is ping or FPS. It takes a few seconds and saves hours of guessing.
- In your Spot.gg Minecraft server panel open "Console".
- Type one of these commands (in the panel console without a slash):
| Command | Works on | What it shows |
|---|---|---|
spark tps |
Paper and Purpur 1.21+ (built in), any engine with the spark plugin or mod | TPS from the last 5 s to 15 min, tick durations, CPU |
tps |
Paper, Purpur, Spigot | TPS from the last 1, 5 and 15 minutes |
mspt |
Paper, Purpur | Milliseconds per tick from the last 5 s, 10 s and 1 min |
tick query |
Any engine, Minecraft 1.20.3+ (also Vanilla) | Target tick rate and average time per tick |
- Also look through the log for this line:
Can't keep up! Is the server overloaded? Running 2563ms or 51 ticks behind
It means the server fell behind. One message after startup or during a big explosion is normal; if it repeats every few minutes, the server is overloaded.
How to read the numbers:
| What you see | Meaning | Next step |
|---|---|---|
| TPS 20, median under 50 ms | The server is fine | Check the player's ping and FPS |
| TPS 20, but max ticks of hundreds of ms | Short spikes (world saves, chunk generation, explosions) | Pre-generate the world, find spikes with spark |
| TPS constantly below 20 | The server can't keep up | Find the cause with the profiler |
| TPS drops only when someone explores | World generation | Pre-generation (below) |
At the top of the server panel you also see live CPU and RAM usage. CPU near 100% while players complain is a clear sign of server lag.
How to find the cause with spark
Run spark profiler start --timeout 300 while the lag is happening, wait 5 minutes and open the link spark prints in the console. The report shows which plugin, mod, farm or kind of work takes the most server time.
Switch the report to the "Sources" view to see time grouped by plugin and mod, or expand "Server thread" following the biggest percentage. The most common culprits:
| Dominates the report | Usual cause | Fix |
|---|---|---|
| Entity ticking (mobs, AI) | Animal farms, hundreds of mobs, items on the ground | Reduce entity lag |
| Block entities, hoppers | Long hopper chains, mod machines | Fewer hoppers, turn off unused machines |
| Chunk generation and loading | Players exploring new terrain, elytra flights | Pre-generate the world |
| One plugin or mod | Heavy or buggy add-on | Update it, reconfigure it or remove it |
| A bit of everything | Too high simulation distance for the player count | Lower simulation distance |
The full walkthrough – installing spark on Fabric and NeoForge, all options and how to read the report – is in How to use the spark profiler.
1. Lower simulation distance and view distance
Lowering simulation-distance to 6–8 is the cheapest fix for server lag: players still see far, but the server only updates the world close to them. Both options are 10 by default.
On Spot.gg:
- Go to "Configuration" → "Most popular", section "Performance".
- Move the "Simulation distance" slider down (e.g. to 6) and click "Save".
- If needed, lower "View distance" as well (8–10 is a good range) and save.
- Click "Restart now" – the change applies after a restart.
| Option | What it controls | Lower it when |
|---|---|---|
simulation-distance |
Area around players where mobs move, crops grow and redstone works | TPS drops with many players, farms, redstone |
view-distance |
How far players see terrain | Lag while exploring, high RAM use, slow chunk loading |
A simulation distance higher than the view distance does nothing – the panel warns about it under the sliders. Recommended values for different servers are in view distance and simulation distance.
2. Pre-generate the world
Generating new chunks is one of the heaviest things a server does, so generate the terrain before players get there. Lag that only appears when someone flies with elytra or explores far away is almost always world generation.
- On Spot.gg: open "Worlds" and turn on "Pregeneration" next to the dimension you want. Without a world border we generate 2,000 blocks from the centre while nobody is playing; with a border set, the terrain up to the border.
- On any server: install Chunky (plugin for Paper; there are also Fabric and NeoForge versions) and run
chunky radius 3000, thenchunky start. - Set a world border (e.g.
/worldborder set 6000), so players don't walk out of the generated area.
A pre-generated world takes more disk space. Details: how to pre-generate a Minecraft world.
3. Switch from Vanilla to Paper or Purpur
Paper runs the same world noticeably faster than Vanilla and players still join with an unmodified game; Purpur is built on Paper and adds more options. If you play without mods, this is the biggest single upgrade.
- Make a backup in "Backup" first.
- Go to "Information" → "Modify" → "Change engine" and pick Paper or Purpur for the same Minecraft version. The world and files are preserved.
- Start the server. spark is built into Paper and Purpur from 1.21, so
spark tpsworks right away.
Paper fixes some Vanilla bugs and exploits (e.g. TNT duplication), which can affect technical farms – read Paper exploit fixes before switching a technical survival world. For mods you need Fabric, Forge or NeoForge, not Paper; the differences are explained in Minecraft server software.
Folia (also available on Spot.gg) spreads the world across several CPU cores, but most plugins don't work with it. Use it only if you know your plugins support it.
4. Fix entities, farms and redstone
Too many mobs, items and hoppers are the most common cause of low TPS on survival servers. A single farm with 500 cows can cost more than all your plugins together.
What to check in the game:
- Animal farms – keep a few dozen animals per pen, not hundreds.
- Items on the ground – they despawn after 5 minutes, but big farms produce them faster.
- Hopper chains and sorters – every hopper keeps checking for items.
- Redstone clocks that run even when nobody uses them.
- Mob farms and spawners built right next to each other.
On Paper and Purpur you can also tune the configuration files in "Files" (open the file, click "Edit", change the value, "Save" and restart):
| File and setting | Default | What it does |
|---|---|---|
spigot.yml → entity-activation-range |
animals 32, monsters 32, misc 16 | Mobs further from players are updated less often. Lowering it saves CPU but slows farms down |
spigot.yml → merge-radius.item |
0.5 |
Merges items on the ground into stacks; 2–3 blocks means fewer item entities |
config/paper-world-defaults.yml → collisions.max-entity-collisions |
8 |
Limits collision checks in crowded pens; 2–4 helps on farms |
config/paper-world-defaults.yml → environment.optimize-explosions |
false |
true makes TNT and creeper explosions much cheaper |
config/paper-world-defaults.yml → misc.redstone-implementation |
VANILLA |
ALTERNATE_CURRENT is much faster but changes how redstone dust behaves – test your contraptions first |
config/paper-world-defaults.yml → hopper.disable-move-event |
false |
true speeds up hoppers, but breaks protection plugins that rely on this event |
Change one thing at a time and measure again with spark. More ways to deal with mobs and items: how to reduce entity lag.
5. Check plugins and mods
A single badly written or outdated add-on can drop TPS for the whole server. spark's "Sources" view shows which one it is.
- Update add-ons. In "Addons" check whether newer versions of your plugins or mods are available – they often fix performance problems.
- Remove what you don't use. Every plugin and mod costs some CPU and RAM, even when nobody uses it.
- Install only maintained add-ons from known authors.
- Don't treat "lag clear" plugins as a cure. Plugins that wipe mobs and items every few minutes hide the problem and annoy players; fix the farm instead.
On a modded server (Fabric, Forge, NeoForge) add server performance mods from "Addons" → "Available to install":
| Mod | What it does |
|---|---|
| Lithium | Faster mob AI, physics and block ticking without changing vanilla mechanics |
| FerriteCore | Lower RAM usage (Fabric version) |
| ModernFix | Faster startup, lower RAM, many fixes for large modpacks |
| spark | Profiler for finding the cause |
Pick the file marked "Compatible with your server". Never put client-only mods like Sodium or Iris on the server – they help FPS on a player's PC, not TPS. The full list is in best Minecraft performance mods.
6. RAM: more is not always better
More RAM only helps when the server is actually running out of memory; if the CPU is the bottleneck, adding RAM changes nothing. The world is simulated mainly on one main server thread, and no amount of memory makes that thread faster.
How to tell whether RAM is the problem:
| Sign | RAM is the problem? |
|---|---|
| RAM bar in the panel at 80–100%, but TPS is 20 | No – Java reserves memory up front and rarely releases it. The panel says so: "This is normal." |
spark health shows memory almost full and very frequent garbage collection |
Yes |
java.lang.OutOfMemoryError in the log or crash report |
Yes |
| High CPU, high MSPT, memory with room to spare | No – look at entities, distances and add-ons |
If you really need more memory, change it in "Information" → "Change parameters" (the server must be stopped first). How much RAM different servers need is in how to allocate more RAM to Minecraft. On Spot.gg the Java memory settings are managed for you, so there are no start flags to edit.
7. Other things that help
- Restart regularly. Some mods and plugins slowly leak memory. In "Task scheduler" you can set an automatic restart, e.g. every night.
- Keep Minecraft and Java up to date. Newer versions of Paper and the mod loaders often bring performance fixes; the right Java for each version is described in Minecraft server Java version.
- Limit the player count with
max-playersif the server is regularly full and TPS drops at peak hours. - Check crashes and freezes. If the server stops by itself after one very long tick, read max-tick-time and logs and crash reports. The "Detected errors" window in the panel shows recognised problems from the log.
How to fix high ping (connection lag)
If TPS is 20 but players still rubber-band, the problem is the connection: distance to the server, Wi-Fi or the player's internet. Server settings won't fix that, but you can reduce it.
- Server location. The further players are from the data centre, the higher their ping. If the panel shows a "Change" button under "Location" in "Information", you can move the server free of charge; the world, files and settings stay unchanged.
- Cable instead of Wi-Fi on the player's side, and no big downloads running in the background.
- Measure the ping from the player's computer – see how to ping a Minecraft server.
How to fix low FPS (client lag)
Low FPS is a problem of the player's PC, not the server – the picture is choppy even in single-player. Players fix it on their side:
- lower Render Distance and turn off shaders in the video settings,
- install FPS mods like Sodium – see best performance mods,
- give the launcher a sensible amount of memory, not as much as possible.
FAQ
How do I check the TPS of my Minecraft server?
Type spark tps in the server console (in the game /spark tps, with operator permissions). On Paper and Purpur 1.21+ it works without installing anything; on Vanilla 1.20.3+ use tick query. 20 TPS means full speed.
What does "Can't keep up! Is the server overloaded?" mean?
The server fell behind by the given number of ticks. An occasional message (after startup, during a big explosion) is harmless. If it repeats often, find the cause with spark and lower the simulation distance.
Will more RAM fix my server lag?
Usually not. RAM helps only when memory is actually full (OutOfMemoryError, constant garbage collection). Lag caused by mobs, farms, chunk generation or plugins is a CPU problem.
Why does my server lag with only one player?
Most often it's world generation (the player is exploring or flying with elytra), a big farm near the player, or a heavy modpack. Pre-generate the world and run spark while the lag happens.
Is Paper faster than Vanilla?
Yes. Paper has many optimisations and is noticeably faster with the same world and settings. Players join it with an ordinary, unmodified game. For mods you need Fabric, Forge or NeoForge instead.
Does a lower view distance reduce lag?
Yes, when the lag comes from loading and generating terrain. When it comes from mobs, farms or redstone, lowering the simulation distance helps more.