How to allow higher memory consumption for pocketmine server? My server PC have 32gb RAM. Php.exe process using only 200-300mb RAM and Pocketmine server console shows low TPS and 100% LOAD. And of course i have lags on my server. So how to increase memory consumption (like example 10-16gb) and can it helps with my PM server perfomance?
Wtf? PMMP uses as much RAM as it needs. And it doesn‘t need much RAM. Having 32GB is useless. You are having lags because your processor is overloaded. To get rid of lags, you need to get a better processor (4,7GHZ per core would be best!)
You don't really need that much RAM unless you are caching very large arrays or way too heavy objects. Go for faster and more CPUs.
But i have Xeon 4 cores 3.17 GHz and my server php.exe process using only 13% CPU and 300mb RAM right now with 100% LOAD and 8 TPS in console. What is this?
No, main system perfomance: Used 13%CPU Used 4,5gb RAM But server cant use more sytem resources and have low TPS and Load 100% + lags on server... It's a totaly core problem i think. I just try to allow PMMP core for using more system resources.
That's strange, does it happen without plugins? And how many players were on the server when the server started to overload?
Why i cant share more system resources from system to the pmmp core for better perfomance? I really cant understand this moment!
Yup, that's it. There are only a handful of mob AI handling plugins that deal with packets efficiently. There's still a possibility that the one in charge of that plugin has exceptionally great system specs, so packet sending/receiving/compressing takes little to no time and that's why they do not experience any sort of "lag" while they're at it, developing. So, does your server runs smoothly at around 20 TPS without PureEntitiesX?
Sure! Without mobs i have 20 TPS No effect. I set all types of memory to 16000mb and i still consume only 300mb with 100% load. I think its very stupid moment in pocketmine core.
Well if it still only comsumes 300mb than that's all it needs. Have you tried running a derver with no plugins at all? Are there any background processes running?
it will take what it needs just like how if someone was hungry in a buffet, they will eat whatever they need, and will stop when they are full just because they didnt eat means they are wasting it just because you over filled yourself on a buffet dosent mean it's good for you or helps you try running ticks and see what's bogging your server down and delete/improve that plugin
this is not strange at all. You probably have 8 Threads (4core cpu) and pmmp only uses 1 thread for most things. That's called HyperThreading. That means pmmp can only use ~12,5% of your CPU. Check for bad plugins which do expensive shit in the main thread. Also, keep in mind that pmmp isn‘t actually using 12.5%, it‘s using 25%. The display is ‚wrong‘.