Lag Spikes on empty server
Hello, im looking for someone who have experience with owning servers. My server has 16gb ram and 6 cores and its almost empty, and for some reason from time to time its tps drops to values like 11-13 tps or even lower. All my plugins show barely no use and my only idea is this process but i dont know what is that. I really need help because i cant figure it out
Paper 1.21.3
43 Replies
Thanks for asking your question!
Make sure to provide as much helpful information as possible such as logs/what you tried and what your exact issue is
Make sure to mark solved when issue is solved!!!
/close
!close
!solved
!answered
Requested by dabbiks#0
Can you share the spark
Sure
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Server seems to be doin well from what I can see in this report. The tree you narrowed down is part of
MinecraftServer.waitUntilNextTick
which as you can read is just the server waiting to do something, which on a empty server is basically nothing to the most partFinding the cause of lag spikes | spark docs
Lag spikes occur when a small number of ticks (or sometimes just one tick) takes a long time to execute.
Try this command when you have the time:
/spark profiler --only-ticks-over 150
Another thing to note -- 16GB is maybe a little excessive. Start small, optimize it the best you can and only then consider upping the ram amount.
Also I should mention that im making zombie apocalypse server and I had to merge 2 maps (map with terrain from worldpainter and map with huge cities) into one using worldedit. Map had a lot of data like armorstands, item frames, furnaces etc. and I had to delete them to prevent players from finding op items, i did it with FAWE on whole map at once and you may ask why this is connected. Sometimes when lag spikes appear im getting this typical paper error DONT REPORT TO PAPER .. but it has something about for example ticking brewing stand that doesnt exist. I cant provide you example but maybe this is connected?
Yeah I know I bought it for cores because offer with 8gb ram had less cpu
That's the main thread dying.
Are you using a paper fork?
If you mean purpur or something no
Its paper 1.21.3
When you get those messages, it might help sharing em
I hardly ever see that
DO NOT REPORT THIS TO PAPER
message, so I'm not that experienced with it
But I'm pretty sure that's when you use a paper fork like purpur, to prevent people from reporting that to Paper instead or Purpur
Then idk, I was wrong with thatI unfortunely dont have example but i will send it here when it will appear again
I think only during those spikes
And it doesnt happen when i render a lot of terrain or something
Really random
But that message does trigger when the main thread dies, which means those chunks you're loading still have something considered resource-intensive in them
Could be a lot of redstone, a lot of entities or other stuff, you should check that out
That's not why that message is displayed. It is usually present in Paper's stacktraces too but just as a precaution to let the user know that the error is not due to the Paper software, maybe user error etc.
Entities aren't excessive
Good to know from now on :very_nice:
yh, yt that spark report is fine
at least I don't see something that would indicate a lagspike
I tried disabling redstone with a plugin, and I didnt change anything
the few times I got this message, was when I poorly pregenerated chunks (a resource-intensive task when you have bad hardware like me) and the spark report were, too red
I mean, do the spark report when you explore that area. If you have players, try doing it during maintenance
Im flying over all those cities very often and everything works fine for most of the time
Also it happens when im in other worlds that are for example empty or just flat
Try with this one when you fly around
Sure, i will try today
Well thats... Something
https://spark.lucko.me/8Be60GdpPV
Its spark with empty server
Working for 5 minutes with only 150+ ticks over
Are you using an HDD by any chance?
Seems like none of your plugins is at fault, but the server is spending too much time saving
Nah, its NVME
Im sure what this is exactly but i checked it once and its pretty good
Not*
And what about the cpu? It says AMD EPYC but not the exact model
Well my hosting says they are using this AMD GENOA 24-core processors
I have 6 from those and its vps
If it's a vps, try executing
lscpu
on the linux commandline
In VendorID.ModelName
should be the exact modelCan't find much info about the cpu, only managed to narrow it down to any of these three
Well, reliably narrow it down to those three, as it's from the amd website
First one is pretty good, second decent, third one bad, really bad
So, it doesn't say much too me, if you have the third one that would explain the lag, if you don't, then I ran out of ideas
Well I generated new world instead of the one I copied
and after 2 minutes my spark is still empty https://spark.lucko.me/8mXtGZ1Pur
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
so it probably means that its problem with this world?
Probably, and might make sense considering it is while saving, however I do not see what could be causing it in the spark report
Besides two gamerules, nothing seems out of the ordinary, unless I'm failing to locate the issue
These two
maxCommandChainLength
, commandModificationBlockLimit
not sure why are too high, but I don't think those are the reason or if they are, if lowering them will break a custom mechanic from the map you copiedOh one griefer joined once
and set it to this values
I don't think those are the problem, but you can try setting them back to the default values
Could you also tell me if this offer (Ryzen 9 5900X
3 Ryzen vCores) would be better for minecraft server than AMD EPYC 9224 but with 6 cores? Besides this issues im considering to move my server from contabo to datalix and ofc i can google it but answer would not be minecraft-related
Wait, you have AMD EPYC 9224 ?
I dont know that
Its assumption
Well, if it is, then yes, it is better
When it comes to minecraft you mostly care about single thread performance
Having more threads or cores is nice, since some plugins do some async tasks, but not the priority
You can check the single thread performance in a website like this one: https://www.cpubenchmark.net/singleThread.html#server-thread
PassMark CPU Benchmarks - Single Thread Performance
Benchmarks of the single thread performance of CPUs. This chart comparing CPUs single thread performance is made using thousands of PerformanceTest benchmark results and is updated daily.
Thank you man i really appreciate your time and help
Youre better than real duolingo