Help with lag

Hello, I've been having some issues with lag on my server with about 10 online. Here is the most recent Spark report, could anyone help me diagnose? https://spark.lucko.me/oZpQqCXKAH
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
55 Replies
Admincraft Meta
Admincraft Meta6mo 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 nunyabizbro#0
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using 1.20.4. Latest currently is 1.21.1.
❌ chunk-gc.period-in-ticks
Decrease this in bukkit.yml. Recommended: 400.
❌ entity-activation-range.wake-up-inactive.villagers-for
Decrease this in spigot.yml. Recommended: 20.
❌ entity-activation-range.wake-up-inactive.flying-monsters-for
Decrease this in spigot.yml. Recommended: 60.
❌ entity-activation-range.wake-up-inactive.villagers-max-per-tick
Decrease this in spigot.yml. Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-for
Decrease this in spigot.yml. Recommended: 40.
❌ entity-activation-range.wake-up-inactive.monsters-max-per-tick
Decrease this in spigot.yml. Recommended: 4.
❌ entity-activation-range.wake-up-inactive.flying-monsters-max-per-tick
Decrease this in spigot.yml. Recommended: 1.
❌ entity-activation-range.wake-up-inactive.animals-max-per-tick
Decrease this in spigot.yml. Recommended: 2.
❌ entity-activation-range.wake-up-inactive.monsters-for
Decrease this in spigot.yml. Recommended: 60.
❌ arrow-despawn-rate
Decrease this in spigot.yml. Recommended: 300.
❌ chunks.max-auto-save-chunks-per-tick
Decrease this in config/paper-world-defaults.yml. Recommended: 6.
Plus 24 more recommendations
Click the buttons below to see more
Requested by nunyabizbro • Page 1 of 3
Skullians
Skullians6mo ago
That CPU isn’t the greatest !optimise
Carl-bot
Carl-bot6mo ago
You can follow these guides to optimize your server
Admincraft Canned Responses
Skullians
Skullians6mo ago
check out eternity’s guide if you haven’t already
DrewIT
DrewITOP6mo ago
I currently use the Performance 01 plan with Pebblehost, do you think possibly going to the Power 2, gen 2 plan may help?
No description
No description
DrewIT
DrewITOP6mo ago
I just made quite a few adjustments in the Spark recommendations as well from birdflop, hoping that might help.
Skullians
Skullians6mo ago
yes, that will DEFINITELY help. The 7900 is miles better than the 4790k I’m assuming you have pregenerated?
DrewIT
DrewITOP6mo ago
I have
Skullians
Skullians6mo ago
right yeah, focus on getting a better cpu cpu
DrewIT
DrewITOP6mo ago
So, you think my lag is bound by the CPU? I'm not really too keen on reading spark reports to determine exactly why.
Skullians
Skullians6mo ago
As far as I can tell, yeah. Your GC times are fine (however I’m concerned as to how you’re using 15gb of ram at 10 players, you may want to look into that) and your system isn’t overloaded as far as I can tell You always want to focus on the ‘single’ rating aka single thread the higher the better sub 3000 isn’t ideal
DrewIT
DrewITOP6mo ago
What would be hogging the memory? It's a pretty in depth and detailed setup, running probably 30+ plugins. With nobody online, it idles at 10gb usually.
Skullians
Skullians6mo ago
that’s not normal consider making a heapsummary /spark heapsummary
DrewIT
DrewITOP6mo ago
Here are the results of that however this is also after the restart and the changes I made from birdflops spark analyzer: https://spark.lucko.me/oYGYe6vgIb
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
❓INFO
You are using 1.20.4. Latest currently is 1.21.1.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Requested by nunyabizbro
DrewIT
DrewITOP6mo ago
bullshit lol
Skullians
Skullians6mo ago
#21 131,858 8 MB org.yaml.snakeyaml.nodes.ScalarNode wtf? consider doing /spark heapdump This will create a file in the spark config folder, you can then use eclipse memory analysed to diagnose leak suspects Also your GC is actually not great
DrewIT
DrewITOP6mo ago
Any recommendations?
Skullians
Skullians6mo ago
first of all remove AlwaysPreTouch That’s just so you don’t hit any OOMEs
DrewIT
DrewITOP6mo ago
Also, is this what you're talking about: https://eclipse.dev/mat/
Eclipse Memory Analyzer Open Source Project | The Eclipse Foundation
The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 415 open source projects, including runtimes, tools and frameworks.
Skullians
Skullians6mo ago
yep!
DrewIT
DrewITOP6mo ago
So, in my startup flags, I would just remove -XX:+AlwaysPreTouch?
Skullians
Skullians6mo ago
yeah
DrewIT
DrewITOP6mo ago
Am I doing this right lmao, I opened MemoryAnalyzer and got this error
No description
No description
Skullians
Skullians6mo ago
What Java version are you using
DrewIT
DrewITOP6mo ago
Honestly no clue, let me look What version should I be using
DrewIT
DrewITOP6mo ago
No description
Skullians
Skullians6mo ago
17 or 21 for eclipse memory analyser ^
DrewIT
DrewITOP6mo ago
Okay, 17 installed opening eclipse
Skullians
Skullians6mo ago
great also In the .ini file in the same folder you may want to increase the Xmx to a value above the size of the heap dump
DrewIT
DrewITOP6mo ago
Done, waiting for dump to download lol
Skullians
Skullians6mo ago
sweet Warning it will take a while to process and when it prompts you select ‘leak suspects’
DrewIT
DrewITOP6mo ago
No description
DrewIT
DrewITOP6mo ago
No description
DrewIT
DrewITOP6mo ago
Looks like a bunch of gibberish to me Update, ran another heapdump and found this
DrewIT
DrewITOP6mo ago
No description
DrewIT
DrewITOP6mo ago
No description
DrewIT
DrewITOP6mo ago
What do these mean? As far as I can tell, the top one is chunks loaded, questionmark? Here is a new spark profile and heapsummary if that helps as well
DrewIT
DrewITOP6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 20.
Requested by nunyabizbro
DrewIT
DrewITOP6mo ago
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
Admincraft Meta
Admincraft Meta6mo ago
Spark Profile Analysis
These are not magic values. Many of these settings have real consequences on your server's mechanics. See this guide for detailed information on the functionality of each setting.
✅ Your server isn't lagging
Your server is running fine with an average TPS of 20.
Requested by nunyabizbro
DrewIT
DrewITOP6mo ago
Any suggestions? 😛
alvindimas05
alvindimas055mo ago
GitHub
Release LagAssist 2.32 · alvindimas05/LagAssist
Fix stacked mobs can't be killed Fix packet methods Fix stacked mobs doesn't drop exp Fix map monitor and ping for older version Fix stats bar for older version Fix GUI backwards compatible...
Skullians
Skullians5mo ago
!clearlag
Carl-bot
Carl-bot5mo ago
Don't use Mob Stacking/Clear Lag plugins
Let's say IRL you are tasked with keeping 50 trees (pretend these are your entities in game) in your yard, but some asshat (clearlagg) comes around every 5 minutes and chops them all down. It's your job to make sure there's always 50 trees planted at a MINIMUM. So you have to go plant more. Then Mr. Asshat comes along 5 minutes later and chops them down again (rinse and repeat). Same could be said about any mob stacking plugins. imagine you have to keep 50 trees in your land, but some asshat (mob stacker) deletes 49 of them and puts a sign on that 1 remaining tree that says ""x50"". There's really only 1 tree there, and you still have to keep a MINIMUM of 50, so you plant 49 more.
Admincraft Canned Responses
Game_Time
Game_Time5mo ago
just wondering regarding mob stacking, what if it just counts it as 50 there for the game?
ProGamingDk
ProGamingDk5mo ago
it should be fine, its generally recommended to only use it for spawners as they by default dont count towards limits (can be changed)
DrewIT
DrewITOP5mo ago
@Skullians The upgrade seemed to fix it, I also found an issue with RTP where players were being teleported outside of the world border so it was loading chunks that were not pre-genned and I think that was where a bit of the lag was from. We've been rock solid at 20 TPS since the upgrade. Thanks for your help!
Skullians
Skullians5mo ago
oh damn! funnily enough I had the same issue once haha
DrewIT
DrewITOP5mo ago
It was a nightmare, I found out that tons of players had already set homes outside of the border so I could either pregen all the way out to like 80k which was huge so I said no, so I've spent the day worldediting like 30 claims lol.
Skullians
Skullians5mo ago
aw damn it that sucks
DrewIT
DrewITOP5mo ago
Appreciate the help though! 🙂
Admincraft Meta
Admincraft Meta5mo ago
post closed!
The post/thread has been closed!
Requested by nunyabizbro#0

Did you find this page helpful?