Identifying Lag Cause
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
12 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 hankerngl#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.21
. Latest currently is 1.21.1
.❌ arrow-despawn-rate
Decrease this in spigot.yml.
Recommended: 300.
Requested by hankerngl
Entities are taking up 40% of your ticks, some sort of command handler taking up 10%
how am I supposed to do to fix it?
I believe 8 Dedicated Threads of a 5800X should be able to handle atleast 30-40 players smoothly.
things get harder when you also add 539 villagers into the mix though as one example of your lag issues
We can't really afford to reduce the amount of villagers as it's an SMP Server
So, we should upgrade to better hardware?
Change the villager logic if that's acceptable, cull them if that's acceptable, attempt to address the other sources of lag, or update to better single threaded performance
8 threads means nothing when most of the logic is single threaded
How do I do that?
Paper Chan hideout
Paper chan's Little Guide to Minecraft Server Optimization!
The most complete Minecraft server optimization guide with everything you need to know about running a Paper Minecraft server plus Paper Chan!
There's a few mentions of villager optimisations here too: https://github.com/YouHaveTrouble/minecraft-optimization
GitHub
GitHub - YouHaveTrouble/minecraft-optimization: Minecraft server op...
Minecraft server optimization guide. Contribute to YouHaveTrouble/minecraft-optimization development by creating an account on GitHub.
Just be aware that these aren't magic numbers, and changes can significantly affect how mobs/the server function
Anything to make the server a bit smoother, we'll warn the users beforehand.