A
Admincraftβ€’2mo ago
Faulty

Random super high ping lag spikes with solid 20 TPS. No idea what is causing them.

So intermittently we will get a huge lag spike on the server. Most players pings will shoot up to 300+ and sometimes even 1000+. This lasts about 30 seconds and slowly goes down over time. We have rubberbanding issues. All while the TPS is locked at a solid 20. Some Info * Server CPU: 3 Threads of 7950x * Ram: 8GB * Players: Usually around 3-8 (issue gets worse with more players online) * Server Version: Purpur 1.21.1-2329-803bf62 (MC: 1.21.1)* Troubleshooting I've Tried * Lowering render distance * Continuously pinging the server while the server is lagging in-game with command prompt. Command prompt stays at a solid 50ms ping for me while in-game it shoots up to 500+. * We tried moving our server to a different location with the same host * Tried a different host with the same CPU (7950x). Same issues. Data Packs * https://modrinth.com/datapack/refined-advancements * https://modrinth.com/datapack/banner-flags * https://modrinth.com/datapack/gardeners-dream * https://modrinth.com/datapack/better-hanging-signs * https://modrinth.com/datapack/mastercutter * https://modrinth.com/datapack/rotten-flesh-to-leather * https://modrinth.com/datapack/hopo-better-underwater-ruins * https://modrinth.com/datapack/hopo-better-mineshaft * https://modrinth.com/datapack/tidal-towns * https://modrinth.com/datapack/dungeons-and-taverns-stronghold-overhaul Plugins * See screenshots below Spark https://spark.lucko.me/XiEf1Eu87f Any Ideas? I can't figure out what is going on. Is the only solution to just try to start testing if removing plugins one by one solves the issue? Are there any troubleshooting steps that I am missing or does anyone have any ideas what's going on?
No description
No description
29 Replies
Admincraft Meta
Admincraft Metaβ€’2mo ago
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 faultyfunctions#0
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
could it be the entities loading in
No description
π’Ÿπ‘œπ“‚π’Ύπ“ƒπ’Ύπ’Έ
ie when someone loads a chunk with like 1k entities
Faulty
FaultyOPβ€’2mo ago
Hmmm I will take a look into that. Do you know how I can go from region number -> coords in-game?
ProGamingDk
ProGamingDkβ€’2mo ago
x 16
ProGamingDk
ProGamingDkβ€’2mo ago
ProGamingDk
ProGamingDkβ€’2mo ago
/spark profiler start --thread *
Carl-bot
Carl-botβ€’2mo ago
Spark Profiler
Spark can be used to see why your server or client is lagging. Users can share a spark report via /spark profiler start --timeout 300 which creates a report after 5 minutes. The spark report is useful in debugging why your server is lagging, so ideally you should always provide one while asking for support. Download | Website | Docs
From An unknown user
Admincraft Canned Responses
ProGamingDk
ProGamingDkβ€’2mo ago
make report with that this sounds like netty thread getting overloaded
Faulty
FaultyOPβ€’2mo ago
I don't have any players on right now. Should I wait until more people are on stressing the server? Can I simulate more players being on by raising the render distance? Here is the spark with no much lag with a high render and simulation distance (I didn't get high ping during this because there was only me on): https://spark.lucko.me/StDPneDiyU I'll generate a new one once more players show up!
ProGamingDk
ProGamingDkβ€’2mo ago
yeah wait till the issue appears
ProGamingDk
ProGamingDkβ€’2mo ago
thats not... good
No description
Snow Kit
Snow Kitβ€’2mo ago
probably bluemap is putting too big of a load on your server if you only have 2 threads available
Snow Kit
Snow Kitβ€’2mo ago
BlueMap
Configuration
BlueMap is a Minecraft mapping tool that creates 3D models of your Minecraft worlds and displays them in a web viewer.
Faulty
FaultyOPβ€’2mo ago
We usually have 3 threads available. It’s only 2 right now because we switched hosts to test if it was just our hosts network issues (which it wasn’t). Lag with 2 threads in virtually the same with lag with 3 threads. I mean it could still be blue map tho I will test with the player render limit, thanks! And I’ll post an updated spark profiler when more players are on.
Snow Kit
Snow Kitβ€’2mo ago
to be completely honest, I hate spark's all thread profiler. They don't have any filter for showing threads that aren't just sleeping, which makes finding the thread using the CPU really hard...
Faulty
FaultyOPβ€’2mo ago
I've contacted our server host and they temporarily increase our thread count to 5 and our ram to 12GB. We'll see if that fixes it. I still think there might be some sort of underlying issue, but if that fixes it then I can't really complain haha Upgrading our server seems to have solved the issue. Maybe with all the plugins we had, the server just wasn't able to keep up? Still weird that it manifested as a ping issues instead of a TPS issue?
ProGamingDk
ProGamingDkβ€’2mo ago
Netty threads being overloaded would cause it
Faulty
FaultyOPβ€’2mo ago
What would cause that you think?
ProGamingDk
ProGamingDkβ€’2mo ago
Which would also explain why more threads helped Well, theres many possible reasons
Faulty
FaultyOPβ€’2mo ago
haha fair
Faulty
FaultyOPβ€’2mo ago
Well here is the final spark report: https://spark.lucko.me/waLPdUWqqD
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Faulty
FaultyOPβ€’2mo ago
In case there is something I missed
Faulty
FaultyOPβ€’2mo ago
Heyo it seems like this is back for me? Here is the most recent spark report: https://spark.lucko.me/dMXo487ysy
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Faulty
FaultyOPβ€’2mo ago
We upgraded the server and it went away for a while but now two of our players are experiencing wicked high ping and disconnections. Any thoughts?
Ashank
Ashankβ€’2mo ago
@ProGamingDk how to check netty thread performance to see if its getting overloaded πŸ™
Faulty
FaultyOPβ€’2mo ago
Oh dang I used --threads instead of --thread 😩 I'll run it again
Faulty
FaultyOPβ€’2mo ago
Okay here is the profiler with the --thread * option: https://spark.lucko.me/ePrQwTKNxU
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Faulty
FaultyOPβ€’2mo ago
@ProGamingDk would you be able to take a look when you get a chance. I'm not sure what I'm looking for. πŸ™ I think I may have figured out the issue? Setting MapPacketSendingRateLimit in the ImageFrame plugin to 1 from -1 seems to have maybe fixed it? I think it was maybe sending too many map packets to players which was causing high ping and time outs on poor connections. Only time will tell though.

Did you find this page helpful?