I put the topic in this section because it might be my plugin? I was wondering if anyone could help me with this lag situation I'm having on my minecraft server running mc 1.6. There are usually around 15-20 players online. I have a worldborder set at 10000 blocks. I tried removed all plugins that may be the reason of causing lag but it still didnt fix. Anyone know or can help me find a solution and fix the lag? Have anyone encounter this issue before? FYI tps is always at 19 - 20
1. try uninstalling ALL plugins. ANY of them can cause lag, no matter what type of plugins they are. (tho AntiCheats are espicially known for this since they always run in the background and consume resources...) Also try turning off PMMPs internal AntiCheat. While it is coded to work much more efficient than 3rd-party-anticheats, it is still an anticheat, so it can hog your resources on a low-end server. Of course you should only do this if you don't have problems with hackers. And don't install SAC, of course! 2. If your TPS are high, its probably a result of a poor CPU and low Computing Power of your server. Do you know the hardware specs of the server (RAM, CPU, ect...)?
So, try to turn off all anticheats.. if it does not work your server probably has a bad CPU. To fix lag then, you can optimize the pocketmine.yml + server.properties or downright switch to a provider which is willing to give you a half-decent CPU.
What are the CPU specs of the machine you're trying to run the server on? The amount of RAM you have doesn't matter as much with PocketMine as much as a good CPU does.
Alright, so because we also use RAMShard, it has to be a plugin problem for sure. What we did wrong and we lagged was sending the statistics of the players on a popup searching on 3 files with over 10k lines every 0.5 seconds, so we changed the way we store them after we figured out. The leaderboard was also causing lag because it was scandir()ing every time a player joined, so the owner re-wrote it, after two months of the server opening because he did not know how, and made it update every 5 minutes (https://forums.pmmp.io/threads/change-the-text-of-a-floating-text-particle-multiple-levels-bug.6472/). What should be causing the lag on you is either your plugins or you are getting DDoSed.