#(valdemarf) CitizensSaveTask causing lag
15 messages · Page 1 of 1 (latest)
(valdemarf) CitizensSaveTask causing lag
Hi I'm AutoThreadBot! Don't mind me, I'll just be adding the helper team to this thread so they can see it. A human will get to you soon.
You can block this bot if you don't want to see these messages, I won't mind.
<@&525394568410038282>
How often are you running the save task?
Every 72000 ticks I believe
I assume that's what the interval means
Ohhh wait I marked the wrong area on timings overview, the lag is not caused by citizens, sorry
It's caused by some Minecraft::spawn - tracker stage 2 (SELF)
!spark
The "timings" system within Spigot/Paper is incredibly inaccurate for use with Citizens, and cannot be used to diagnose any issues related to Citizens. It notably blames Citizens for a significant amount of entity-related lag (that isn't in any way caused by Citizens).
For accurate timings, you need a Java profiler. There are a variety of profiler options (WarmRoast, YourKit, VisualVM, ...), but the simplest to use on a Spigot server is a plugin named "Spark" that embeds WarmRoast, which you can find here: https://www.spigotmc.org/resources/spark.57242/.
To get a spark report, type /spark profiler start, then replicate lag issues (for no more than about a minute), then /spark profiler stop, and post the link it gives you.
@molten hollow
Is it possible to setup spark to work like timings? Where it always kind of checks? Instead of just between start and stop?
Without creating lag ofc
@molten hollow
Thread was closed either automatically by timeout or by the Discord manual close button. If closing was intentional, please use </resolved:1028673926114594866> or </invalid:1028673926898909185>.