When the server first started, the tps is 20 for a while, but very soon, it dropped to 10 when player reach to 40 or more. what can I do to fix it? Thanks for your help. Timings: https://timings.spigotmc.org/?url=16656680 timings (26/05): https://timings.spigotmc.org/?url=16703656
here is my activation range in spigot.yml: entity-activation-range: animals: 6 monsters: 8 misc: 2 And my view-distance is 3
Perhaps you have a process load on the processor. Try to kill the process that load your CPU most (/htop and enter /kill PID more loading process)
CPU L5520 9GB Ram 50 GB SSD i know this specs isn't good for minecraft hosting, but i only host a server 60 slot player
You can lower the load if you pregenerate chunks with plugin like WorldBorder. It will take some time, but you will see way less lag. I usually pregenerate my main world and leave nether and end as they are, because players do not wander alot there.
I have installed Worldborder, but my server is still lag. Here is my new timings: https://timings.spigotmc.org/?url=16703656
They are running both. You installed it but did you set it to generate all the chunks inside the border?
That's a fairly poor CPU; http://www.cpubenchmark.net/[email protected]+2.13GHz&id=2086 I would expect this is the cause.
I run a 20 slot server on Intel dn2800mt (low end passive cooled processor). Pregenerating chunks helps alot and i do not get complains about lags unless someone makes something stupid with redstone or spawners. As @Foulwerp says WorldBorder has a command to fill the world inside border. So read how to do it, set a reasonable size border and fill it. Keep in mind filling is CPU intensive task and can take alot time(and disk space!). On my server filling 7000 block radius border takes 5+ hours and in that time game is very very laggy. I usually fill worlds when server is empty - there is command to pause and resume the operation.