Server lagging sometimes

Hello and I have a Minecraft server. Normally it’s tps is consistently 20 and the mspt is 7-13. But after some time (about 24 hours) it starts lagging really bad. It goes steadily down from 20 to as low as 10, and I do not know the cause of the lag. I tried using timings but I don’t know how to use the data to fix it. When I restarted the server, the lag continued. The only way I could find to fix it was to restart my computer. (I started using Aikar’s flags but it didn’t fix it)
Timings Link: https://timings.aikar.co/?id=0101aaf5703e416e9d3944c3fff71f19#timings
Plugins: Geyser, Floodgate (I tested it without any plugins and the same behavior continued)
Also, this lag began when I switched from Windows to Linux. Maybe that’s related?

1 Like

try to low view distance or mobs…
this github will help about optimization https://github.com/YouHaveTrouble/minecraft-optimization check it out

1 Like

Thanks for the help but my problem is that my server lags only sometimes, and I do not know what is causing it. Most of the time, the tps is great. Also I do not want to change any settings because we’ve built up lots of farms and stuff and I want to keep this server close to vanilla.