I have a 512MB RAM droplet at Digitalocean and I was wondering if I should upgrade. I'm thinking to increase my player slots from 10 to 20 and having at least 5-10 players online at once. With those things in mind, should I upgrade to a 1GB server? Also please list how many players you hosted compared to your RAM; I want to calculate an average and figure out the rest from there. Thanks.
RAM isn't really what's most important when using PocketMine- CPU is. I've been able to 10 players on 1GB of RAM just fine.
Before 1.1 I could handle just over 100 players with 512 MB. Yes MB. It was laggy, but it was possible. I didn't have any money to purchase more RAM at the time. This wouldn't have been possible in 1.1 though.
If you have a soft memory limit set, the server will automatically reduce the radius when the memory usage exceeds the soft limit. You could probably do what you want with a plugin though.
Also note that that only makes a significant difference if you have lots of players scattered all over a map. If you have a lot of players concentrated in one area of the map, it makes little difference because they'll all be using the same chunks.
For 512MB you can have 0-30 players depending on your chunk settings. You should note that your server will crash when it runs out of memory or the operating system will kill PocketMine when there is no more memory left (at least on Linux it does). So that can be a indicator when it is time to upgrade. Though as dktapps said, memory usage will mostly depend on your chunk settings. And "more ram" often does nothing to increase performance, if performance was your aim. I can have 90 players on a server with 2GB of ram. I never tried to have more then 90 players though because TPS starts dropping after that point, so I have to balance players across 10 servers to keep up with demand.
on a 1gb ram with 1cpu at 2.90ghz = 30 players 3gb with x2 cpu at 2.9ghz = 60-70 . You need all cpu you can get, and set async compression to true. Ideal build for a mcpe server = 3-4gb ram , x3-x4 cpu at 2.9-3.2 ghz. P.S. my server use 400mb ram and 150-220% cpu. So now pocketmine demand more cpu than ram.
Why suggest 3-4 GB RAM when you say your server only uses 400 MB? Wouldn't 1-2 GB be more than enough?
My server's /status: Code: Maximum memory (system): 1,954 MB. Heap memory: 11 MB. Total virtual memory: 1,954 MB. Total memory: 894 MB. Main thread memory: 688 MB. Thread count: 10 Network download: 390038.21 kB/s Network upload: 1679998.4 kB/s Average TPS: 7.34 (100%) Current TPS: 4.39 (100%) Uptime: 34 minutes 41 seconds ---- Server status ----
you cant find a 1gb vps with 4 cores =)) . And I restart server every hour. @InspectorGadget you don't use pmmp, from your timings. It say to me too in status that I use about 1-2gb but on htop is only 200-300mb used.
Network download: 390038.21 kB/s Network upload: 1679998.4 kB/s This is a glitch from forks dude, I know them all.
@InspectorGadget uses PMMP. You can't get forks or spoons from Poggit or the Jenkins. How do you know that's not really his internet speed?
Sorry I didn't know you have 10k players online, my bad. I wont comment on this thread anymore, you are all too smart for me.
You're being sensitive for no reason, @Edwardthedog2 just did that Poggit doesn't have forks and my question is how do you say that it's a fork when I download it from Poggit? Can you explain that?