Solved Server lag and rollback every 5 min

Nono40

New member
Jan 26, 2024
2
0
1
Hi,

We run a server since a long time without any issue. The latest stable version running during months is paper-1.20.1-76.jar
I upgrade to paper-1.20.4-397.jar a few days ago and today to the last one paper-1.20.4-399.jar
Since I upgrade to 20.4 i start to get some lags.

Today I staty connected to the server and notice a warning every 5 minutes corresponding to the lag and rollback on the game :
[22:13:59 WARN]: Can't keep up! Is the server overloaded? Running 3283ms or 65 ticks behind
[22:19:02 WARN]: Can't keep up! Is the server overloaded? Running 3287ms or 65 ticks behind
[22:24:06 WARN]: Can't keep up! Is the server overloaded? Running 3420ms or 68 ticks behind
[22:29:09 WARN]: Can't keep up! Is the server overloaded? Running 3311ms or 66 ticks behind
When it happen the chunk roll a few second back but the player position do not change.

The above messages arrives every 5 min even if no players are connected.

Since one year at least I am the only one to use Minecraft on this server.

I have change nothing else while installting the version 1.20.4

It is a Linux server.

I have no idea where to llok, any idea will be appreciated :)
 
Timings
https://timings.aikar.co/dev/?id=73e6e22497bd41e3b448b532ce403c82
Version Output
[22:28:51 INFO]: This server is running Paper version git-Paper-399 (MC: 1.20.4) (Implementing API version 1.20.4-R0.1-SNAPSHOT) (Git: b03f255)
You are 2 version(s) behind
Download the new version at: https://papermc.io/downloads/paper
Previous version: git-Paper-397 (MC: 1.20.4)

stefvanschie

Moderator
Staff member
Dec 17, 2021
101
3
16
18
You seem to have quite a bit of entities, specifically in world SK in region (-2048, 0) there are over 1 800 chickens. I'd recommend reducing the amount of these.
 
Solution

Nono40

New member
Jan 26, 2024
2
0
1
Thank you very much for the answer. This points us on the right direction.

I spoke with the admin who install the server and we were not thinking that the chunks remain active when the players leave a world.
We were thinking it just uses disk space (we have a lot free) but not server CPU ressources.
Half of the worlds will never be used again.

As I am the only one now to connect with Minecraft, I have removed all worlds except the one I use. This includes the SK world with the big colony of chickens.
We have a very recent backup if one user wants its world back online.

Don't know why we never see it with the version 1.20.1, maybe 1.20.4 needs just a little more ressources and we reach the limit.

I played one hour without any lag and I have not seen any warning on the console since I deletes thes worlds.

Thanks again :)