Hello! My server have been lagging for 2-4 weeks. I dont know why… The last thing that I did, was install CustomNPCs and added 8 NPCs (traders).
Timing:
https://timings.aikar.co/?id=5964fdeba82f45a596689f7fdc3165b7
From what i can see, its mainly chunk generation. Something that takes a heavy hand on any server.
There are things you can do to mitigate it though. The first is using a chunk pre generator (Nucleus has one). Or you can put a world border on.
I would also recommend following the below two guides:
https://forums.spongepowered.org/t/optimized-startup-flags-for-consistent-garbage-collection/13239
https://docs.google.com/document/d/1LJ5VodluXPU_rse0ulfZNg36yaclWvglrNxrpk_OyOM/edit?usp=drivesdk
I did it 1 month ago
As mentioned before it only mitigates the issue. Does not solve it.
If your players move far out, the world will once again need to start generating new chunks