Hello everyone. I have a server problem where the lag is real even with 3GB RAM, 13 maps and 13 plugins. I don't know why but I just really feel that the VPS is maybe the reason. Every time now, the server lags. We use 4 async workers and so I changed it to that but I'm not sure, so maybe that's the reason. Please help me out and find ways to stop lag as much as possible. We are currently hosting a SkyWars server and we are not sure what's the issue with it.
Maybe it's your huge amount of maps, or maybe the internet connection for you or the VPS. Also, please don't duplicate threads.
If your using the skywars plugin by svile it could definetely be that one causing lag if your using 13 maps. You may want to reduce your maps or upgrade your vps. If you think its the vps's fault you should run the server with an empty plugins folder to see.
Please checks with the Timings method: /timings on, wait after the lag wave ends, /timings paste and /timings off. There is an URL, post here to diagnose or you can do it yourself. If not then capture your Task Manager or something on Linux to see if your CPU is or is not overloaded.
Start multiple instance of PocketMine, each one runs only 2-3 maps. This will utilize all of your CPU. Be careful not to overload it as it will freeze your server on rush hours.
It basically shows what takes up your Tick per Second (TPS) while your server is running. Allows /status at pocketmine.yml to see your server status including TPS.
Yes I have tried that, however, nothing much happened. SW_svile is still taking up 2,001% of my server's performance. It says interval 19, so should I change that repeating task to another interval? Without it causing problems with the countdown? Or is there someone who can help me rewrite that part of the code? thanks.
Successfully keeping your TPS = 20 means no lag. It all comes down to the poorly designed mechanism of the plugin, and without proper documentary, not much you can do. Split your server into multiple servers, make another plugin, or you can't.