Minecraft Server Lag Fix: How to Stop Lag on Your Server

Minecraft server lag fix guide: check TPS, find the cause with spark, tune view distance, pregenerate chunks, tame farms and know when you need more RAM.

Updated Sep 30, 2026 · 6 min read

On this page

The quickest Minecraft server lag fix is to find out which kind of lag you have first: server lag (low TPS, blocks reappear, mobs freeze) or connection lag (high ping, rubber banding for one player only). Server lag is usually caused by too many entities, heavy farms, world generation or too little RAM, and is fixed with Paper, lower view distance, pregenerated chunks and a quick profile with spark. This guide goes through each step in order.

Short answer

  1. Run /tick query (vanilla) or /spark tps (Paper) and check the TPS. Anything under 20 is server lag.
  2. Switch from the vanilla server to Paper.
  3. Lower simulation-distance to 6 and view-distance to 8 in server.properties.
  4. Pregenerate the world with Chunky so exploring does not generate new chunks.
  5. Profile with /spark profiler start to find the farm, mob pile or mod causing it.
  6. If memory use sits near the limit, give the server more RAM.

Step 1: Is it server lag or connection lag?

Symptom Likely cause
Everyone lags at the same time, mobs freeze, blocks you break come back Server lag (low TPS)
Only one player rubber bands, others are fine That player's connection or Wi-Fi
Low FPS, stutter when turning The player's PC, not the server
Lag spikes every few minutes for everyone Autosave, garbage collection or a farm that turns on

Minecraft servers run at 20 ticks per second (TPS). Each tick has 50 milliseconds (MSPT) to run everything: mobs, redstone, crops, hoppers. When a tick takes longer, TPS drops and the whole game slows down.

Check it:

  • Vanilla: /tick query shows the target and the actual tick time.
  • Paper: /tps or /spark tps shows TPS for the last 1, 5 and 15 minutes, and /mspt shows tick times.

TPS of 20 with MSPT under 50 means the server is healthy, and the lag is on the player side or the network. For one laggy player, ask them to use a cable instead of Wi-Fi, close downloads, and check their ping in the tab list.

Step 2: Run Paper instead of vanilla

Paper is a drop in replacement for the official server that fixes many performance problems and exploits while keeping vanilla gameplay. On the same hardware it often handles two or three times the players. Your world loads on Paper as is (back it up first). It also lets you run plugins, which the official server cannot.

Very technical redstone players sometimes notice small differences, but for most friend groups it only means less lag. On GamezServers, servers start on Paper by default.

Step 3: Lower view and simulation distance

These two lines in server.properties have the biggest effect of any setting:

view-distance=8
simulation-distance=6
  • simulation-distance is how many chunks around each player actually run: mobs, crops, redstone. Every step up adds a ring of chunks per player. Dropping it from 10 to 6 cuts the work a lot.
  • view-distance is how far players can see. It costs less than simulation but still means more chunks loaded and sent.

Players will barely notice a view distance of 8. Restart after changing them.

Step 4: Pregenerate your world with Chunky

Generating new terrain is one of the heaviest jobs a server does. When friends fly with elytra or explore in different directions, the server generates chunks nonstop and TPS tanks. Pregenerating does that work once, ahead of time.

With the Chunky plugin (Paper) or mod (Fabric, NeoForge):

chunky radius 5000
chunky start

That generates a 10,000 by 10,000 block area around spawn. It takes a while, so run it when nobody is playing. Pair it with a world border, worldborder set 10000, so nobody wanders past the generated area. Repeat for the Nether with chunky world world_nether or the Nether's dimension name.

Step 5: Find the real cause with spark

spark is a profiler that shows exactly what is using the server's time. It is built into Paper since 1.21, and available as a plugin or mod for Fabric and Forge.

spark profiler start --timeout 300

Play normally for five minutes. When it stops, spark prints a link to a report. Open it and look at the biggest numbers under the server thread. Common culprits:

  • Entities: hundreds of item frames, armor stands, villagers or animals in one place. Mob farms that never clear.
  • Hoppers: big item sorters and long hopper chains.
  • Redstone clocks: fast clocks left running all the time.
  • A specific mod or plugin: its name shows near the top.

/spark health also shows memory use and CPU at a glance.

Step 6: Deal with entities and farms

Once you know the cause:

  • Count entities. /kill @e[type=item] clears dropped items. Find crowded areas with the spark report or by walking around with F3 open.
  • Cap animal pens and villager halls. Breeding 300 cows in one pen is the classic server killer. Keep pens to a few dozen.
  • Turn off farms when not in use. Add a lever to clocks and iron farms.
  • Use water streams instead of long hopper chains where you can.
  • Paper settings: in config/paper-world-defaults.yml you can limit entities per chunk, speed up item merging and optimize explosions. Change one setting at a time and restart.

Step 7: Check memory, then upgrade if needed

Too little RAM makes the server spend its time cleaning memory, which shows up as regular lag spikes and, at worst, OutOfMemoryError crashes. /spark health shows memory use. If it sits near the limit during normal play, you need more.

Server RAM that fits
Vanilla or Paper, up to 5 friends 2 GB
Paper with plugins, 10 to 25 players 4 GB
Light modpack, up to 10 players 6 GB
Big modpack like All the Mods 8 GB or more

More RAM does not fix everything. A single farm or one bad mod can drop TPS on any amount of memory, because a Minecraft server does most of its work on one CPU core. That is why the steps above come first. Read how much RAM a game server needs for the full picture.

Hosting at home adds its own lag

If you host on your own PC, the game, Discord and a browser all compete with the server for CPU and memory, and your home upload speed limits how many players connect smoothly. A PC on Wi-Fi adds latency spikes for everyone. A hosted server avoids this: it runs on dedicated hardware in a data center, and on GamezServers you can move to a bigger plan in Settings when your group grows. The price is prorated and the new RAM applies after a restart.

The easy way

Most lag fixes are the same everywhere: Paper, sane distances, pregenerated chunks and fewer entities. What a host adds is hardware that is not also running your game, and an upgrade button when you need more. See Minecraft server hosting or the quick start guide.

FAQ

What is a good TPS for a Minecraft server?

20 is perfect and the maximum. Players rarely notice anything above 18. Below 15 everything feels slow.

Does more RAM fix Minecraft server lag?

Only if the server is running out of memory. If memory use is fine and TPS is low, the cause is usually entities, farms or world generation, which RAM does not fix.

Why does my server lag when players explore?

Generating new chunks is expensive. Pregenerate the world with Chunky and set a world border.

Does the number of players cause lag?

Each player loads their own area and adds mobs and chunks around them. Players spread across the map cost more than players building together in one base.

Skip the setup. Your Minecraft server, live in 60 seconds.

Plans first month from $2.49. No command line, cancel any time.

Deploy Minecraft

Keep reading