Solved Maximum Memory different from Allocated Memory

Discussion in 'Bukkit Help' started by ewainer1, Oct 19, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    ewainer1

    I am running a Bukkit server and I was checking my TPS when I saw that my 'Maximum Memory' was different from my 'Allocated Memory'. My TPS is 16-17 but I started the server with 100GB of RAM, it says it's using only 2GB. How do I use all of my RAM I started it with?
     
  2. Offline

    DrPyroCupcake

    Um, how the flip do you have 100 gigabytes of RAM is the more important question.
     
  3. Offline

    ewainer1

    I have a server with 128GB of RAM.
     
  4. Offline

    DrPyroCupcake

    How much did that cost you? Also you don't want to use all of your RAM, that will cause it to crash.
     
  5. Offline

    ewainer1

    I got it off ebay for $300. How much would be good to use?
     
  6. Offline

    DrPyroCupcake

    It depends on how many plugins and players. I have 31 plugins, and have had 24 people on my server with no lag. I used 4 gigabytes for that. For your purposes you would probably never need more than 8 gigabytes max. You should also look into your processor and bandwidth.
     
  7. Offline

    ewainer1

    Ok, I started the server with 8GB and it says the allocated memory is 904MB but the max is 8GB. (4 x 4 core 2.2GHz processors btw.)
     
  8. Offline

    tcvs

    ewainer1 128GB of ram??? Are you sure?? Are you hosting it yourself?
     
  9. Offline

    ewainer1

    tcvs Yes, I am sure and I am hosting it myself.
     
  10. Offline

    tcvs

    ewainer1 ok... What is your starting command line. That might be way you see something different for your allocated.
     
  11. Offline

    ewainer1

    tcvs
    Code:
    java -Xmx100G -Xms100G -jar craftbukkit.jar nogui
     
  12. Offline

    turt2live Retired Staff

    Java is smart and won't allocate it unless it needs it. The operating system is also restrictive such that it won't let the application brick off a large amount of empty RAM. By using the start command you've pasted above, you are telling Java that it is okay to allocate as much as it needs when the application first starts, but it won't try and take that amount and section it off. It does however warn the operating system that it may need that amount of RAM, so the operating system tries it's best to keep it clear for Java.

    TL;DR : Java won't section off 100gb of RAM right away, but it will tell the OS that it may need it.
     
  13. Offline

    ewainer1

    So in the rare case it needs 100GB it will use it?
     
  14. Offline

    turt2live Retired Staff

    It will try to.
     
    ewainer1 likes this.
  15. Offline

    ewainer1

    Ok, thanks for the info :)
     
Thread Status:
Not open for further replies.

Share This Page