Minecraft server lag is easier to fix when you identify whether the problem is client FPS, network ping, or server TPS first. This guide shows you how to measure the right metric, profile the server with spark, apply low-risk configuration changes, and decide when more CPU or RAM will actually help.
What you need
You need console or operator access, a recent backup of server.properties and your world, and a way to reproduce the problem. If you run Paper, spark is bundled from Paper 1.21 onward; otherwise, install a compatible spark plugin or mod from the spark project.
Record the loader, player count, location, and player action that trigger the lag. That context makes a profile more useful than a quiet-server snapshot.
Step 1: Identify which kind of lag players mean
Why: FPS, ping, and TPS have different causes, so changing server settings cannot fix every symptom.
Ask two questions: does everyone feel it, and what exactly happens in the game?
- Client FPS: One player sees a choppy picture, especially in single-player or only near a visually busy build. Check the FPS counter with
F3on Java Edition. Lower that player’s render distance, particles, or shaders; do not start by changing the server’s tick settings. - Network ping: One or a few players rubber-band, take delayed hits, or see delayed block updates while other players are fine. Check their connection and route to the server. Moving the server settings will not repair a congested Wi-Fi link or a long route.
- Server TPS: Everyone sees mobs freeze, delayed redstone, blocks reappear, or several actions happen at once after a pause. This is the server failing to complete its game ticks on time.
If every player is affected, continue below. If only one player is affected, test that player’s FPS and ping before resizing the VPS.
Step 2: Measure TPS, MSPT, and ping
Why: a number gives you a baseline and prevents a harmless memory spike or a player’s Wi-Fi problem from sending you in the wrong direction.
From the server console, or in game with the required permission, run:
/spark tps
/spark ping
TPS is ticks per second. A healthy server targets 20 TPS. MSPT is milliseconds per tick; each tick has a 50 ms budget at 20 TPS, so sustained MSPT above 50 means the server cannot keep up. The spark TPS and MSPT documentation explains the min, median, maximum, and 95th-percentile values shown by the command.
Use /spark ping --player PlayerName when one person reports delay. If TPS is near 20 and that player’s ping is high, investigate their connection or route rather than increasing RAM.
Step 3: Capture the lag while it is happening
Why: a profile taken during normal play can hide a five-second spike inside an average, while a profile taken during the spike can show the responsible plugin, entity system, or chunk work.
Start a five-minute profile when players can reproduce the problem:
/spark profiler start --timeout 300
When the lag event happens, let the timeout finish or stop it manually:
/spark profiler stop
Open the returned URL. Start at the Server thread, then expand the largest time percentages under the tick loop. The spark viewer guide also provides a Sources view for checking plugins or mods.
For a short, severe spike, first enable a monitor and then capture only slow ticks:
/spark tickmonitor --threshold-tick 50
/spark profiler start --only-ticks-over 100 --timeout 300
The first command reports ticks over 50 ms. The second filters out normal ticks and records only ticks over 100 ms. Choose the second threshold from what you observed; if your spikes are 300 ms, a 100–150 ms filter is more useful than a 300 ms filter that may exclude borderline samples. Stop the monitor after testing by running /spark tickmonitor again.
Step 4: Apply the smallest configuration fix
Why: lowering the work done per tick is usually safer and cheaper than blindly adding memory.
Back up server.properties, change one value, restart the server, and measure again. Start with these two settings:
view-distance=8
simulation-distance=6
view-distance controls how much world data the server sends to a client. simulation-distance controls how far entities are updated around players. The Paper server-properties reference documents both settings and their chunk-radius behavior.
Use lower values when players explore quickly, generate new terrain, or spread across many areas. Keep them higher when long-distance visibility is central to the server and the profile shows that chunk work is not the bottleneck. There is no universal “best” number; the right value is the highest one that keeps your measured MSPT within budget.
World generation can spike when players enter unexplored terrain. Pre-generate the main play area with a version-compatible tool, then test exploration again during a quiet window.
Step 5: Find plugins, mods, entities, and chunks causing the load
Why: the profile tells you what is consuming tick time, while a plugin list alone only tells you what might be responsible.
Use the profile’s Sources view and look for these patterns:
| Profile pattern | Likely area to inspect | First action |
|---|---|---|
| One plugin or mod dominates | A scheduled task, event listener, or repeating scan | Update it, review its task settings, then test with it disabled during a maintenance window |
tickEntities is large | Mob farms, item piles, villagers, minecarts, or loaded entities | Remove accidental piles, reduce unnecessary farms, and check entity-heavy chunks |
| World or chunk ticking dominates | Exploration, high distances, redstone, or a large loaded area | Lower distances, pre-generate safely, and inspect the busiest dimensions |
| Allocation or garbage collection appears during spikes | Heap pressure or an allocation-heavy plugin | Check memory with spark health show --memory, then inspect the relevant source |
Change one thing, repeat the same action, and compare TPS, MSPT, and the new profile. This keeps the test reversible.

Step 6: Upgrade only when the measurements justify it
Why: RAM helps when the JVM is constrained, while tick-heavy worlds often need faster single-thread compute; buying more of the wrong resource leaves the cause untouched.
Upgrade when the profile and health report show a repeatable resource ceiling after configuration and plugin checks:
- Memory pressure: The server approaches its memory limit, garbage collection is frequent, or the process is killed for lack of memory. Move to more RAM and leave headroom for the operating system; do not allocate every available gigabyte to Java.
- Main-thread CPU pressure: MSPT rises during entity, chunk, redstone, or plugin work while memory is comfortable. A plan with stronger per-core performance and more available CPU is more relevant than RAM alone. Paper notes that the main tick loop can limit the benefit of simply adding more cores.
- Several workloads together: A busy server may need more CPU and RAM because the game, plugins, backups, and monitoring share the same machine. Confirm that the profile shows this combined load before resizing.
For a self-hosted server, VPSLake’s Buffalo Linux plans give you full root access and a dedicated IPv4. The 4 GB plan is $9.99/mo, the 8 GB plan is $16.99/mo, and the 16 GB plan is $29.99/mo. The 8 GB plan has 4 vCPUs, 100 GB SSD storage, 5 TB traffic, and a 300 Mbps port. See the Buffalo Linux VPS plans for the current table.
For a large network with several game processes, databases, or proxy services, compare the available dedicated server options instead of forcing every workload onto one small VPS. This is a self-hosted setup, so you retain responsibility for the server software, updates, backups, and configuration.
Verify the fix
Why: a server that feels better for five minutes may still fail when players explore, join, or activate farms.
Repeat the same test before and after the change:
- Reproduce the same location, player count, command, farm, or travel route.
- Record
/spark tps, the MSPT values, player ping, and the server’s memory state. - Check whether the same profile branch remains dominant.
- Test an unexplored area and the busiest dimension, not only the quiet spawn area.
- Keep the change only if it improves the target symptom without causing a gameplay problem.
A useful result is stable TPS near 20, MSPT within the 50 ms budget during normal activity, and fewer or shorter spikes during the original event.
Troubleshooting common Minecraft server lag cases
TPS is 20, but players still rubber-band. Check per-player ping and packet loss. If only one region or player group is affected, compare routes and try a nearby server location; do not keep changing entity settings.
MSPT is high only while exploring. Lower view-distance temporarily, reduce simulation-distance if entity ticking is involved, and pre-generate the area during a quiet maintenance window. Then profile exploration again.
The profile shows a plugin, but the plugin author says it is fine. Reproduce the issue with the plugin disabled in a test copy or maintenance window. Save both reports and share the spark URL with the author.
More RAM did not raise TPS. That is expected when the profile points to the main server thread, a plugin task, entities, redstone, or chunk generation. Revert unnecessary memory changes and fix the dominant profile branch instead.
The server freezes during a large save or backup. Check disk and save-related activity in the health report and logs. Schedule heavy maintenance away from peak play, then measure the same save operation again.
FAQ
What is the difference between Minecraft TPS and ping?
TPS describes how quickly the server processes game ticks, while ping describes the round-trip delay between a player and the server. Low TPS affects many players and causes delayed game simulation; high ping can affect one player even when the server remains at 20 TPS.
Is 20 TPS always enough to prevent Minecraft server lag?
20 TPS is the target, but it does not prove that every player has a good connection or a fast client. Check MSPT, the 95th percentile, per-player ping, and the actual symptom instead of relying on one average number.
How do I use spark to find Minecraft server lag?
Run /spark profiler start --timeout 300 while the lag is happening, then inspect the returned report and start with the Server thread. For brief spikes, use tickmonitor first and filter with /spark profiler start --only-ticks-over 100 --timeout 300.
Does increasing RAM fix low Minecraft server TPS?
It fixes low TPS only when memory pressure or garbage collection is the cause. If spark shows entity ticking, chunk generation, redstone, or a plugin task using the tick time, reduce that workload or choose a VPS with stronger per-core CPU performance.
How much RAM does a Minecraft server need?
The answer depends on players, world size, loader, mods, plugins, and other services on the machine. Use the Minecraft server RAM sizing guide as a starting point, then confirm the choice with spark health data from your real workload.