How To Fix Minecraft Server Lag
11 minute read · Updated November 2026Short answerCheck TPS first, then fix the workload causing the lag.
If blocks break slowly and mobs freeze for everyone, check the server's tick performance. Lowering simulation distance, reducing overloaded farms and avoiding live chunk generation can help. Run a spark profile during the lag to identify which changes your server actually needs.
Minecraft server lag can mean delayed block breaking, rubber-banding, frozen mobs or a game that simply looks choppy. Those symptoms can come from different places, so start by checking whether the problem affects the server, the connection or a player's own computer.
The commands and configuration examples below are for Minecraft Java servers, including Paper and modded servers. The distinction between server performance, connection problems and low FPS also applies to Bedrock.
Find out what kind of lag you're experiencing
| What you notice | What to check |
|---|---|
| Blocks take time to break, mobs freeze and several players notice it together | Server tick performance |
| Movement snaps backward or interactions arrive late, especially for particular players | Network latency or packet loss |
| The picture stutters when looking around, but other players are unaffected | The affected player's FPS |
| The server briefly freezes when someone explores | Chunk generation, confirmed with a profile |
| Lag starts when a farm runs or players gather in one area | Entities, redstone and plugins working in that area |
These problems can overlap. Rubber-banding, for example, can happen because of a poor connection or because the server has fallen behind.
Check TPS and MSPT
On Paper, run:
/tps
/mspt
With spark installed, you can also use:
/spark tps
Minecraft normally targets 20 ticks per second, giving it 50 milliseconds to complete each tick. MSPT measures how long those ticks take. Sustained tick times above 50 ms mean the server cannot maintain 20 TPS.
TPS averages can hide brief freezes. If players report Minecraft server lag spikes while TPS appears normal, check tick-time spikes and capture a profile while the problem happens.
Our Minecraft TPS explanation covers how to interpret these measurements.
If tick performance is healthy, skip to the connection and FPS checks below.
Capture the lag with spark
Spark shows where the server spends its processing time. It helps distinguish an overloaded mob farm from a slow plugin, expensive world generation or another bottleneck.
Paper includes spark from Minecraft 1.21 onward. On older Paper versions or modded servers, install a compatible server-side spark plugin or mod first.
While the server is lagging, run:
/spark profiler start --timeout 60
Open the report link after the recording finishes. From the server console, enter commands without the leading slash.
Record during the activity that causes the problem: several players exploring, a busy farm running or your usual evening player count. A profile taken while an empty server is idle may miss the cause entirely.
In the report, look for the work taking the most time:
- Entity ticking or AI: investigate mobs, villagers, dropped items and farms.
- Chunk generation: check whether players are exploring new terrain.
- Plugin or mod code: inspect the feature doing the work and its configuration.
- Block entities: investigate loaded hoppers, furnaces and modded machines.
A wide section in the graph is a lead to investigate, rather than proof that everything named there is faulty. A plugin may be processing thousands of entities because of how a farm is built.
After making a change, repeat the same activity and compare performance. Change one thing at a time so you can tell what helped.
Lower simulation distance before sacrificing visibility
Players spread across the world keep more chunks active than the same number of players gathered at spawn. High distance settings can therefore become expensive as a community grows.
Java servers have two separate settings:
- View distance controls how far the server sends terrain to players.
- Simulation distance controls the surrounding area where much of the world simulation runs, including mob activity and crop growth.
As a starting point for a struggling survival server, try:
view-distance=8
simulation-distance=6
On Server Heron, open your server under My servers, then use Settings to change view and simulation distance. Save and restart to apply the changes. You can also edit server.properties through Files while the server is stopped.
Lower simulation distance can reduce work while preserving a longer view of the landscape. It also changes how far away farms and other activity continue running, so test the result with your players.
The difference in area grows quickly: a square extending ten chunks in each direction contains 441 chunk positions, compared with 169 at six. Actual loading and ticking depend on the server and overlapping player areas, but this explains why modest distance reductions can make a noticeable difference.
Check farms, mobs and dropped items
A server that runs smoothly until someone visits a trading hall or switches on a farm has a useful clue: the problem is tied to activity in that area.
Look for:
- Villagers repeatedly trying to reach inaccessible workstations or beds.
- Mob farms accumulating more creatures than they kill.
- Item streams overflowing because storage is full.
- Large numbers of minecarts, hoppers or modded machines.
- Redstone clocks that continue running when nobody needs them.
Start with the build causing the load. Add an off switch, prevent overflow, reduce unnecessary entities or redesign the busiest part.
Avoid blanket commands that remove every entity. They can delete villagers, pets, armour stands and other things players intended to keep. Target the specific problem and make a backup before destructive cleanup.
If profiling shows that ordinary mob spawning is a substantial part of the workload, Paper's spawning settings may help. For example, lowering spawn-limits.monsters in bukkit.yml reduces the natural monster population, but also affects encounters and farm output. It will not remove an existing collection of bred villagers or livestock.
Entity activation ranges are configured in spigot.yml on Paper. Reducing them can limit activity farther from players, but may change farm behaviour. Treat these as targeted adjustments rather than settings every server should copy.
Use suitable server software
For many survival and SMP servers, Paper offers useful performance improvements over Vanilla, along with Bukkit and Spigot plugin support.
Paper does change some Vanilla behaviour, which matters for certain technical builds and farms. If your community relies on precise Vanilla mechanics, check those requirements before switching. Our server software comparison explains the options.
On Server Heron, you can switch server software through Settings on your existing plan. Create a backup first and keep the same Minecraft version when testing the change.
For modded servers, stay with the loader your pack requires. Choose performance mods that explicitly support that loader and Minecraft version; a client rendering mod will not fix slow server ticks. With an established modpack, check what it already includes before adding more.
Keep server software, plugins and mods on compatible, maintained releases. Back up before updating, and avoid changing the Minecraft version, loader and several mods together while diagnosing lag.
Pre-generate terrain if exploration causes freezes
Generating new terrain can create substantial CPU and storage work. If lag begins whenever players travel beyond explored areas, pre-generation lets you do that work before a busy play session.
Chunky is available for several server platforms. Install the version appropriate for your setup, back up the world and run the task when few or no players are online.
For example, these commands select the default overworld and generate a 2,000-block radius around coordinates 0, 0:
/chunky world world
/chunky center 0 0
/chunky radius 2000
/chunky start
Replace world with your actual world name and choose a centre and radius appropriate for your map. Pre-generation itself uses resources and increases world size, so check available storage before starting. You can pause and resume the task:
/chunky pause
/chunky continue
Pre-generation reduces future terrain-generation work inside the completed area. Loading chunks and simulating their contents still require resources.
A world border can keep exploration inside that area, but choose it carefully on an existing server: players may already have builds beyond your proposed boundary. Minecraft's world border uses a diameter, while Chunky's radius measures the distance from the centre.
Investigate plugins and mods that appear in the profile
The number of plugins alone tells you little. One expensive task can cost more than dozens of lightweight plugins.
When spark points toward a plugin or mod:
- Check which feature is consuming time.
- Look for excessive scan ranges, frequent scheduled tasks or unusually large workloads.
- Check for a compatible update and relevant fixes.
- Test a configuration change or disable the feature, then profile again.
Stop the server before removing plugin files, and restart normally rather than using /reload.
Be more cautious with mods. Removing a content mod can remove blocks, items or world data. Test on a backup copy, or follow the pack author's guidance, before removing anything from a live modded world.
Fix memory pressure without guessing at RAM or Java flags
More RAM helps when the server genuinely needs more memory. It does not make an overloaded farm or slow plugin execute faster.
Memory usage also rises and falls as Java allocates objects and clears unused ones. A high reading by itself does not establish a problem.
Look for supporting evidence: out-of-memory errors, frequent lengthy garbage-collection pauses or memory pressure that persists under your normal workload. Spark provides memory and garbage-collection information; this command can also help investigate what occupies the heap:
/spark heapsummary
Use that alongside the profile and logs. A large number of objects does not automatically mean a memory leak.
If the server lacks memory for its workload, increase the allocation or reduce that workload. For modpacks, start with the pack's server recommendations and check actual usage. Our Minecraft RAM guide explains how to choose a suitable amount.
Avoid copying long JVM flag lists or lowering RAM simply because the server has occasional freezes. The right configuration depends on the Java version, available memory and measured behaviour. When self-hosting, leave memory for the operating system and other processes as well.
A restart may temporarily relieve a leak, but recurring freezes still need investigation.
Trace lag spikes that happen on a schedule
If lag appears at the same time every day, compare that time with backups, map renders, scheduled commands and plugin maintenance tasks.
On Server Heron, Console provides historical CPU, memory and player graphs alongside log history. Use these to find the affected period, then check Schedules and Activity for related tasks or changes.
Move heavy jobs away from peak hours where practical, and avoid running several together. Keep backups in your routine; adjust their timing rather than abandoning them.
A repeated “Can't keep up!” message means the server has fallen behind, but does not identify why. Match its timestamp to a profile, scheduled task or other evidence. If freezes lead to watchdog shutdowns or out-of-memory crashes, continue with Minecraft server crash troubleshooting.
Check the connection when tick performance is healthy
If TPS and tick times remain healthy during the complaint, ask whether everyone is affected or only particular players.
For an affected player:
- Try Ethernet instead of Wi-Fi.
- Pause downloads, uploads and cloud syncing.
- Compare with and without a VPN.
- Check whether the problem also affects other servers.
High latency causes delays; packet loss can cause irregular stalls and disconnects. A player can experience both while the server itself runs smoothly.
Hosting near your community helps reduce the distance traffic travels. Server Heron's infrastructure is in EU West, making it a relevant location for European communities. Actual latency still depends on each player's connection and network route.
If several players suddenly develop connection problems together, give your provider the affected times and players' regions so they can investigate.
Check FPS when only the picture stutters
Low FPS is handled on the player's computer. Lower client render distance, disable shaders temporarily and check graphics settings.
A busy area can cause both client and server problems, but the measurements tell you which side needs attention. Strong server TPS cannot compensate for a client struggling to render hundreds of entities.
Still lagging? Bring the measurements
The most useful next step is a spark report captured during the problem, together with what players were doing at the time.
For Server Heron support, include the report link, the approximate time of the lag, your Minecraft version and server software, and whether everyone was affected. Mention recent plugin, mod or configuration changes too. You can contact us through a support ticket or our Discord community.
Once you've made a change, test again under a similar workload. Lower tick times, fewer spikes and responsive gameplay are the signs that you've addressed the cause.
