#(valdemarf) CitizensSaveTask causing lag

15 messages · Page 1 of 1 (latest)

molten hollow
#

The save task is causing a lot of lag, and I was wondering if it could be lowered somehow? The TPS drops are because of it I believe

kind irisBOT
#

(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>

compact reef
#

How often are you running the save task?

molten hollow
#

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)

compact reef
#

!spark

misty sierraBOT
# compact reef !spark
Info: 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.

compact reef
#

@molten hollow

molten hollow
#

Without creating lag ofc

spark daggerBOT
#

@molten hollow

Thread Close Blocked

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>.