EnderPanel Back to the website

Guides

Why is my Minecraft server lagging?

Short answer

Usually the world has more going on than the computer can keep up with. Lower the view and simulation distance, switch to Paper or add performance mods, trim heavy farms and mods, and give the server enough (not too much) memory.

Fixes that help, most first

  1. Lower the view distance (and simulation distance) in server.properties. 8 to 10 is plenty for most groups.
  2. Use a faster server. Paper or Purpur instead of plain Minecraft, or performance mods like Lithium and FerriteCore on Fabric.
  3. Find heavy things: giant mob farms, lots of hoppers, or one mod doing too much.
  4. Check memory. Enough for your setup, but leave the rest for the computer. See how much RAM.
  5. Close other heavy programs on the server computer.

Lag that isn't the server

If only one player lags, it's often their connection or their own computer. Rubber-banding for everyone at once, with 'Can't keep up!' in the console, is the server.

Quick questions

What does 'Can't keep up!' mean?

The server fell behind on its 20 updates a second, usually from too much happening in the world.

Does more RAM fix lag?

Only if it was running out. More than needed can make it worse.

Is Paper faster than plain Minecraft?

Usually yes, noticeably, and it runs plugins too.

Related guides