Recent Discussions

Lag Spike Every 5 Minute: Can't keep up! Is the server overloaded? Running 2663ms or 53 ticks behind

Unanswered
Himalayan posted this in #questions
Messages143 messages
Views0 views
HimalayanOP
I am running purpur 1.21.4 via Pterodactyl Panel on a Ubuntu 24.04.1 Live server VM installed through TrueNas virtualization. This VM has 32GB allocated with all cores and threads of a Core i5-11500. Every 5 minutes, my TPS drops like crazy and my MSPT spikes like crazy (to the thousands). The server terminal/console has a corresponding "Can't keep up! Is the server overloaded? Running 2663ms or 53 ticks behind". I ran a spark profiler, but have no idea what I am looking at. Can anyone please help?

https://spark.lucko.me/gBbtg5CPxw
HimalayanOP
image.png
HimalayanOP
Intel Core i5-11500. it only reads Xeon because my VM inserts it as such. Another note, this server ran on windows 10 using a run.bat file without this issue, although that was with 1.20.4.
java -Xms5G -Xmx10G -XX:+UseG1GC -XX:+ParallelRefProcEnabled -XX:MaxGCPauseMillis=200 -XX:+UnlockExperimentalVMOptions -XX:+DisableExplicitGC -XX:+AlwaysPreTouch -XX:G1NewSizePercent=30 -XX:G1MaxNewSizePercent=40 -XX:G1HeapRegionSize=8M -XX:G1ReservePercent=20 -XX:G1HeapWastePercent=5 -XX:G1MixedGCCountTarget=4 -XX:InitiatingHeapOccupancyPercent=15 -XX:G1MixedGCLiveThresholdPercent=90 -XX:G1RSetUpdatingPauseTimePercent=5 -XX:SurvivorRatio=32 -XX:+PerfDisableSharedMem -XX:MaxTenuringThreshold=1 -Dusing.aikars.flags=https://mcflags.emc.gs -Daikars.new.flags=true -jar server.jar
That's my startup arguments.
Ruddy Ground-Dove
Might be a good idea to switch OS to Linux of some sort as a side note.
The actual problem feels weirdly like GC, but Aikar flags are already there.
@Ruddy Ground-Dove Might be a good idea to switch OS to Linux of some sort as a side note.
The actual problem feels weirdly like GC, but Aikar flags are already there.
HimalayanOP
What do you mean by this? The server is currently running on Ubuntu Live Server 24.04.1
Ruddy Ground-Dove
Oh wait it’s saying it’s on Ubuntu?? Where’s Windows in this chain?
Oh wait nvm I can’t read today.
HimalayanOP
It's not on windows. It was on windows previously, but I have upgraded it to linux. I mentioned windows earlier to give context that this issue did not exist when running on windows (albeit at a older version with older plugins).
Ruddy Ground-Dove
Can’t see any plugins that’re wildly fucked other than Multiverse but that wouldn’t be causing this I don’t think.
@Ruddy Ground-Dove Oh wait nvm I can’t read today.
you too?
damn todays not our day
Ruddy Ground-Dove
Alloc looks fine, settings look healthy.
Ruddy Ground-Dove
We need a longer spark.
@Himalayan Run it for like 10 mins or so.
@Tamz it’s 53 ticks which isn’t a lot
like 19.23 tps
HimalayanOP
spark shows those numbers, but when in game with a TPS counter, i see insane spikes
@Ruddy Ground-Dove @Himalayan Run it for like 10 mins or so.
HimalayanOP
Will do that now
Loading...