Server lag on save / plugin callsSolved
My server has been running fine for the past few months, but as of this wipe my players are getting some pretty severe lag out of nowhere. I noticed it was the worst when LootLogs was being called (as it sometimes takes several seconds to save data). I assumed that was the problem, but even after disabling it, I was still getting lag. I disabled the rest of my plugins (I don't use that many), but it was still lagging randomly when the server saved. According to the host, they're not seeing anything unusual on their end and they have no idea how to fix it.

I haven't added or updated any plugins, no configuration changes, entity count is normal, file sizes are normal, etc.

Any idea what the problem could be and why it started up all of a sudden this wipe? Could it be a hardware issue, or something else?

Because most of plugins using save on server saving that drops FPS to 0 and do spikes

It's doing it on other plugin saves as well though, and even when plugins are disabled.

This is the first time I've had this problem in over 10 months of hosting my server. Everyone has noticed how bad it is and I'm getting a lot of complaints all of a sudden. Nothing has changed on my end since the last wipe though, and everything was fine then.
Like @Orange said when the server saves it has a big lag spike, check your config or your commandline execute and see what server.saveinterval is set to, I changed mine from 5 minutes to 15 so from 300 to 900 and it's fine if you want longer then make sure if you ever restart the server put server.save in the console because it might go back in time.
It's been set to 5 minutes for almost a year and no problems until just now. Even if I change that, it's still lagging on almost all plugin calls. Again, no issues with any of this until this month.
Yup tell me about it, facepunch updates are getting worse by the month, unless you have a vanilla then it shouldn't be a big deal but if your running a modded server with almost 90+ plugins then ya its an issue.

Has there been any fixes for this so far ? I'm having a very similar issue currently and my server is suffering greatly for it.

Curious if you can list which plugins are showing the hook time warnings. Sometimes the server can stall mid hook for reasons unrelated to the hook, but historically there are numerous specific plugins that are known to cause lag spikes during save as Orange mentioned, usually because those plugins use large monolith data files storing preferences for many users.

Storing data files on server save by itself is not necessarily an anti-pattern. In fact, it's sometimes the most correct time to save data, such as if the data corresponds to actual entities that are being stored in the Rust save, since this approach allows plugins to stay in sync with the world state in the case of a rollback.

However, many plugins do use anti-patterns such as saving on server save when it doesn't involve the world state (the data save could happen other times instead), as well as saving more data than needed, such as saving things that havent changed. The latter problem often happens if a plugin uses only one data file since it has to serialize all the data for write even if only one line changed.

If this does turn out to be related to specific plugins saving large data files, the best course of action is work with the plugin maintainer to optimize this. It is not an acceptable response in my opinion for a plugin maintainer to say No Thanks to such an issue.

Locked automatically