BATTLECORE
Log in

My server is lagging

RAM, view distance, heavy plugins, or the player's own connection.

Updated November 19, 20263 min read

First work out who is lagging. That tells you where the problem is.

  • Everyone lags (mobs freeze, blocks come back after you break them, the day cycle stutters): the server itself is struggling. Read on.
  • Only one player lags, everyone else is fine: it's that player's connection or computer. Their ping is shown on their page in the Players tab.

Measure it

On Paper and Purpur, type tps in the console. 20 is perfect; below about 18 players start to notice. For a detailed report, type spark tps, or spark profiler start, wait a minute, then spark profiler stop for a link that shows exactly what is using the server's time.

The Console's cards: RAM Usage at 3.0 GB, Community Supported, and Network Usage with download and upload figures.
The RAM card shows how close the server is to its limit.

Also watch the RAM Usage card under the console. A server sitting at its limit pauses often to free memory, and that feels like lag.

Common fixes

  • Lower view and simulation distance in the World tab. Simulation distance 6 to 8 is one of the biggest wins.
  • Pre-generate the world with Chunky, so exploring doesn't generate new land on the fly. Keep the radius sensible for your storage.
  • Too many entities: huge mob farms, thousands of items on the ground, or hundreds of animals in a pen. Thin them out.
  • Heavy plugins or mods: spark's report names them. Remove what you don't really use.
  • On Fabric, add the performance mods Lithium, FerriteCore and Krypton from the Gallery.
  • Purpur or Paper run noticeably faster than Vanilla.
My server is lagging | Ultimate Guide | BattleCore