1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

How many players can 1GB RAM withstand?

Discussion in 'Help' started by MCMarsBoyee, Jun 29, 2017.

  1. MCMarsBoyee

    MCMarsBoyee Spider Jockey

    Messages:
    30
    GitHub:
    mcmarsboyee
    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.
     
  2. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    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.
     
    corytortoise and xflare like this.
  3. FAXES

    FAXES Spider Jockey

    Messages:
    45
    What server provider are you using?
     
  4. Sandertv

    Sandertv Zombie Pigman Poggit Reviewer

    Messages:
    786
    GitHub:
    Sandertv
    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.
     
  5. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    It depends what kind of chunk radius you allow. More chunks = more memory used.
     
  6. HimbeersaftLP

    HimbeersaftLP Fish

    Messages:
    2,402
    GitHub:
    HimbeersaftLP
    Would it be possible to dynamically edit the chunk range depending on the online player count?
     
    jasonwynn10 likes this.
  7. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    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.
     
    jasonwynn10 likes this.
  8. dktapps

    dktapps Administrator Staff Member PMMP Team

    Messages:
    774
    GitHub:
    dktapps
    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.
     
    jasonwynn10 likes this.
  9. xflare

    xflare Creeper

    Messages:
    2
    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.
     
  10. asters

    asters Spider Jockey

    Messages:
    25
    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.
     
  11. corytortoise

    corytortoise Skeleton

    Messages:
    825
    GitHub:
    corytortoise
    Why suggest 3-4 GB RAM when you say your server only uses 400 MB? Wouldn't 1-2 GB be more than enough?
     
  12. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    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 ----
    
     
  13. asters

    asters Spider Jockey

    Messages:
    25
    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.
     
  14. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    How don't I? I'm using a pre compiled phar from poggit
     
  15. asters

    asters Spider Jockey

    Messages:
    25
    Network download: 390038.21 kB/s
    Network upload: 1679998.4 kB/s

    This is a glitch from forks dude, I know them all.
     
  16. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    You sure? Maybe this is a multicraft issue? How can I download a forked phar from poggit?
     
    EdwardHamHam likes this.
  17. EdwardHamHam

    EdwardHamHam Skeleton

    Messages:
    962
    GitHub:
    edwardhamham
    @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?
     
  18. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    It's a VPS, maybe yes.
     
  19. asters

    asters Spider Jockey

    Messages:
    25
    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.
     
  20. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    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?
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.