consistent lag spikes that drop TPS and MSPT regularly

I need a second opinion on what the best and most concise solution would be for this problem. I'm using pebblehost's premium plan that utilizes a Ryzen 9 7900 with 8 GB RAM. fabric 1.21.10 with a handful of structure mods + performance mods
currently, I plan to do the following:
- install Let Me Despawn + have endermen despawn even if they are holding a block - change the jvm flags to aikar's flags + have -xmx and -xms match (if there are better benchmarks than the aikar's flags script for 8 GB of RAM, please let me know) (i generated the script on flags.sh) - remove friends&foes - remove serene seasons - remove c2me (i would like to avoid this if possible, but if it's impacting performance, i will) - reduce server view distance to 8 and simulation distance to 6 (if you have better values, please suggest it)
here are the spark profiles taken to find the memory was getting shot trying to append entities, notably the Glare mob
profile made for ticks that take more than 90 ms to process (with bookmarks for issues i found) https://spark.lucko.me/26DDwI4sbg?hl=4323,69458,69487,8236,76948,109938,109970,76988,76975,76991,117911,100032,76977,109968,114669 profile that was taken when the lag was occurring (used /spark profile open with default settings.) https://spark.lucko.me/xwVO5DHtky?hl=59396,59401,59403,5098,59394,59416,59422 for reference, here's a memory profile with only 1 player online. this is the idle state of the server essentially https://spark.lucko.me/JCp4SkZ2kW I'm asking for second opinions on what to do in terms of solutions, so please suggest any that come to mind. thank you
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
spark
spark is a performance profiler for Minecraft clients, servers, and proxies.
2 Replies
Snow Kit
Snow Kit4d ago
it's a datapack (or datapack disguised as a fabric mod) that's causing the lag. See this article for how to find the slow one https://docs.bloom.host/datapacks/#performance-issues at least half the tick is taken up by datapacks
Cookerstarring
CookerstarringOP3d ago
ty ty i'll look into it

Did you find this page helpful?