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
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
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
That CPU isn’t the greatest
!optimise
You can follow these guides to optimize your server
Admincraft Canned Responses
check out eternity’s guide if you haven’t already
I currently use the Performance 01 plan with Pebblehost, do you think possibly going to the Power 2, gen 2 plan may help?
I just made quite a few adjustments in the Spark recommendations as well from birdflop, hoping that might help.
yes, that will DEFINITELY help. The 7900 is miles better than the 4790k
I’m assuming you have pregenerated?
I have
right yeah, focus on getting a better cpu
cpu
So, you think my lag is bound by the CPU? I'm not really too keen on reading spark reports to determine exactly why.
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
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.
that’s not normal
consider making a heapsummary
/spark heapsummary
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.
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
bullshit
lol
#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
Any recommendations?
first of all remove AlwaysPreTouch
That’s just so you don’t hit any OOMEs
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.
yep!
So, in my startup flags, I would just remove
-XX:+AlwaysPreTouch
?yeah
Am I doing this right lmao, I opened MemoryAnalyzer and got this error
What Java version are you using
Honestly no clue, let me look
What version should I be using
17 or 21
for eclipse memory analyser ^
Okay, 17 installed opening eclipse
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
Done, waiting for dump to download lol
sweet
Warning it will take a while to process and when it prompts you select ‘leak suspects’
Looks like a bunch of gibberish to me
Update, ran another heapdump and found this
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
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
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
Any suggestions? 😛
You might want to try this plugin
https://github.com/alvindimas05/LagAssist/releases/latest
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...
!clearlag
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
just wondering regarding mob stacking, what if it just counts it as 50 there for the game?
it should be fine, its generally recommended to only use it for spawners as they by default dont count towards limits
(can be changed)
@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!
oh damn!
funnily enough I had the same issue once haha
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.
aw damn it
that sucks
Appreciate the help though! 🙂
post closed!
The post/thread has been closed!
Requested by nunyabizbro#0