Recent Discussions

Need help finding cause of low TPS

Unanswered
Rex posted this in #questions
Messages26 messages
Views0 views
RexOP
I already asked on the reddit, but sadly got no answers.
https://www.reddit.com/r/admincraft/comments/1i8kxyb/commanddispatcherexecute_seems_to_be_causing_low/

I get seemingly random and sudden low TPS that doesnt resolve itself until I restart the server. Please help me interpret the spark profiling output. I also did /perf start to generate an profiling debug .zip which I could upload if someone needs it. Some related images are in the reddit thread.
Thanks for the help.

Lag starting:
https://spark.lucko.me/d7Wyns723T

Some time later:

https://spark.lucko.me/tIC8xxRJhE
Polish
Appears to mainly be commands lagging the server, which is typically command blocks or data packs. In this case, it is something which interacts with entities
RexOP
Logs:
16:39:22 was the first spark output command
18:14:25 was the second output command
https://mclo.gs/mR95LZb
@Polish Appears to mainly be commands lagging the server, which is typically command blocks or data packs. In this case, it is something which interacts with entities
RexOP
Yes I saw that too. Nobody was using any commands at the time and I only have 1 datapack installed (treeplacer terralith addon v1.1.0). Could that be the issue? I figured it had to be one of the mods but i cant seem to figure out which. The list of mods is displayed in the spark link.
Polish
Mods typically don't run commands, but they can
With how many mods you have, I'd start with checking if it improves if you remove the done data pack first
And then binary search your mods if the data pack isn't the issue
@Polish And then binary search your mods if the data pack isn't the issue
RexOP
okay i will try that. The problem is the low tps only happens randomly like 1 time every 2-3 days so its difficult to find out what is causing the problem. Also what do you mean with binary search?
Polish
!binary
1 sec
Original message was deleted
Polish
(yes, I'm that lazy)
RexOP
i though about doing that but because the problem only starts without any trigger known to me and only once every severa days its difficult to use that and be sure that the problem is fixed. Also then i have to play several days without half of my mods which is also unideal :/ @Polish
Polish
image.png
Chunks loaded, entities loaded and MSPT all seem to go hand in hand
You also have a bunch of entities called marker, which are typically used by data packs
But yeah, something is causing a lot of chunks to be loaded, leading to lots of entities being loaded, which in addition to whatever command is looping through all entities, looks to be what is tanking your perf.
@Polish Chunks loaded, entities loaded and MSPT all seem to go hand in hand
RexOP
thanks for the help. im just wondering why the lag started (first spark link) as in that graph it doesnt seem like there is a correlation between the chunks and the lag. Before the lag 20.8k chunks/21.32MSPT after start 20.9k chunks/155MSPT. In the second link only 6.2k chunks but still 170 MSPT 🧐
but i will definetly uninstall the one datapack i have as i dont really need it
Polish
The first link you sent has expired
RexOP
i also saw that there is a compat problem between betterchunkloading and c2me so i will delete the former
Polish
so I've only been able to see the 2nd one
RexOP
wierd i can still open it. here the file tho
whylag.sparkprofile
Loading...