The server starts without a problem, but the TPS is 10 and the CPU gives sudden ups and downs all the time so it causes a lot of lag, I need to fix this, but I have tried everything and I don’t know how to fix it
Reproduction Steps
First I start the server
Everything is fine, it starts
When a player or even without a player starts on the server, the CPU starts to go bad and TPS drops to 10
Gives the following error: Can’t keep up! Is the server overloaded? Running 26579ms or 531 ticks behind
This is rather a small amount of resources to run a modded server with. From experience, it may start fine, but you’ll start to get a bottleneck once the world expands especially if you have users actively exploring. Not to mention, all the mods also have their own resources running with the server which if not immediately overtime will cause lag on little resources given to the instance.
You mentioned in your previous post that things were going well for a few days; perhaps another try could be testing a new world and see if the problems persists.
You can also just install the Spark mod on the server, then run a profiler to see what mods are using up the most resources.
Also make sure you’re using a reasonable render distance (8-12), given that MC is mostly singlehthreaded.