MSPT is very high and causing lag, not sure how to lower it.
We recieved a huge increase in players on our server recently and the TPS has been really low every since.
We've already followed this guide https://github.com/YouHaveTrouble/minecraft-optimization, and we currently use Wither Host's multiserver option, velocity/paper.
These are our timings and spark profiler https://timings.aikar.co/dev/?id=6998c70c35e74412b34ec9690bac3456 https://spark.lucko.me/6koObOkt9c
Not sure what else to do from here, any advice would be appreciated!
GitHub
GitHub - YouHaveTrouble/minecraft-optimization: Minecraft server op...
Minecraft server optimization guide. Contribute to YouHaveTrouble/minecraft-optimization development by creating an account on GitHub.
Aikar's Timings Viewer
Aikar's Timings Viewer - View Timings v2 reports from Paper and Sponge
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
28 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 akemil#0
Timings 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-130-b1b5d4c (1.21)
. The current latest is 1.21.4
.❌ StackMob
Stacking mobs causes more lag.
❌ 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.
❌ misc.redstone-implementation
Set this to "ALTERNATE_CURRENT" in config/paper-world-defaults.yml.
❌ chunks.entity-per-chunk-save-limit.experience_orb
Set a value in config/paper-world-defaults.yml. Recommended: 16.
Plus 4 more recommendations
Click the buttons below to see more
Requested by akemil • Page 1 of 2
Haha, love that the bots are already finding things to improve.
Make sure you post a new spark report after making those changes.
well, either datapacks or command blocks
itll be datapacks, ill probably just get rid of all the ones that arent world gen then
(you're running an old version of spark/paper which doesn't show the installed datapacks)
doesn't really matter though
we havent been able to use the latest version of paper because some of the plugins we use aren't updated
otherwise we wouldve switched
but yeah, ~50% of the tick is being consumed by datapacks
Told ya there are nerds on the Discord that are better than me at reading these things. :P
yeah, you see a lot of the same issues unfortunately
I didn't think to look for datapacks. Gonna remember that for next time.
well, normally if you go to the flame chart and see a large block that isn't in
.tickChunks()
or EntityTickList.forEach()
, then that's an issue❌ Processing Error
The bot cannot process this Spark profile. Please use an alternative Spark profile.
Requested by akemil
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
i deleted most of our datapacks that arent world gen but im assuming its still so high because them being world gen is part of the problem
but i cant remove them because theyre world gen
you can try pregenerating the world and running the spark profiler after, so world generation doesn't get in the way
yeah, functions are still taking 1/3rd of tick time
Also a lot of items around, maybe lower the despawn rate
better than 50% of the time, though
sorry do you mind reminding me where I change that
world is already pregenerated
and we have world border set up
paper-world: alt-item-despawn-rate
thank you!
you can also increase a little bit the item merge in spigot.yml
how much would you say to increase it by
I have it at 3, but some players get confused and think their items disappeared, when those just merged with other further away
So, maybe lower than that
okay, thank you!
!solved
Closed post!
Your post has been marked as solved!
Requested by akemil#0