ACLClouds
ACLClouds

The game server slows down even though the ping is good

Tell apart CPU or memory saturation, a slow server tick, a plugin and a network problem. Low ping does not guarantee smooth simulation.

Low ping does not guarantee smooth simulation. Game servers often rely heavily on a CPU core and the time it takes for each tick.

Step-by-step procedure

  1. Compare CPU and RAM

    Watch the statistics while the lag occurs and note whether the CPU reaches its limit or whether memory causes restarts.

  2. Measure the tick

    Use the game or framework performance command to check TPS, frametime, or tick duration.

  3. Reduce the load

    Reduce the view distance, AI load, entity count or save frequency, and temporarily disable recently added plugins.

  4. Test without players

    Compare an empty server with a loaded one. Lag that only appears with many players helps you choose the right plan.

Measure the tick on Paper with spark

tps
mspt
spark profiler start
spark profiler stop

Reading the console graphs

The console shows the "CPU usage", "Memory" and "Network" graphs, with the current value and the "Peak". CPU is expressed as a percentage of one core: 100% means one vCore fully busy, so a server limited to 2 vCores tops out at 200%.

In the server information block, the CPU or memory value changes colour above 80% of the limit, then again above 90%. Note these values at the exact moment of the lag, not an hour later.

  • CPU at the ceiling and stable memory: the simulation lacks computing power. Reduce the load or move to a plan with more vCores.
  • Moderate total CPU while the game stutters: many games simulate the world on a single thread. On 4 vCores, one saturated core only shows 100% out of 400%.
  • Spikes at regular intervals: look for an automatic world save or a "Schedules" task that runs at the same moment.

Measuring the tick on Minecraft

On Paper and Purpur, type tps in the console: the normal value is 20 over 1, 5 and 15 minutes. mspt gives the duration of a tick, which must stay below 50 ms. To find the cause, the spark plugin records a profile during the lag and gives a link to a report naming the most expensive plugins, entities and chunks.

Frequently asked questions

What does Can't keep up! Is the server overloaded? mean in the Minecraft console?

Some ticks took longer than 50 ms and the server fell behind. A single line at startup is normal. If it keeps coming back, measure with mspt and spark: the cause is often a large number of entities, chunks generated during exploration or a plugin. Pre-generating the map with a plugin such as Chunky reduces the load caused by exploration.

The server switches to "Crashed" when the lag gets bad, why?

The process stopped, often because it ran out of memory. Look for java.lang.OutOfMemoryError or Killed in the last lines of the console. Remove recently added plugins or mods, reduce the view distance, then restart. If memory still reaches the limit under normal load, the plan is too small.

Do I need more RAM to fix the lag?

Not necessarily. If memory stays below the limit and the CPU is at the ceiling, adding RAM changes nothing: you need more vCores or less load. When an upgrade is justified, "Change plan" applies the new limits without recreating the server.