Assigning more RAM to a server GUIDE!

Discussion in 'Bukkit Help' started by InhumanSkills, Jan 21, 2011.

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

    zipfe

    What a silly, uninformed and completely superfluous statement.

    While running the actual server on a linux box, I use a Mac to test everything before it goes live on the real server. Simply do whatever you do on a Linux box. Never had any problems.
     
  2. Offline

    InhumanSkills

    It's kind of an inside joke lol.
    Don't worry about it.
     
  3. Thanks, This fixed my server running on 1 GB now at 12 GB of 16GB :D +internetz
     
  4. Offline

    YES Minecraft

    There is already so many guides on this.
     
  5. Offline

    InhumanSkills

    This is one of the first.
     
  6. Offline

    mmmmmm419

    im getting an error "could not access jarfile craftbukkit-0.0.1-SNAPSHOT" im running a 1.0 server btw
     
  7. Offline

    Grovert11

    For 1.0.0 you have to change "craftbukkit-0.0.1-SNAPSHOT.jar"to "craftbukkit-1.0.0-SNAPSHOT.jar"!
     
  8. Offline

    mmmmmm419

    thanks but instead i changed the craftbukkit file name to 123 and then i got more problems cause i had 32 bit java on 64 bit pc, but now i can allocate 7 gb of ram to my server
     
  9. Offline

    HourlyCookie

    How can I run It at 6gigs of ram?
     
  10. Offline

    InhumanSkills

    Try something like this
    Code:
    @Echo off
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms1024M -Xmx6144M -jar craftbukkit-1.0.0-SNAPSHOT.jar
    pause
     
  11. @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx4096M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx4096M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    PAUSE
    ---------------------------------------------------------------------------------------------------------------------------------
    Its saying "invalid maximum heap size: -Xmx4096M"
    I have a 8GB 64bit computor and this worked for my server before but when I reset my server this ste back to 1024 and I tried setting it back to 4 GB but it just isnt working.
     
  12. Offline

    InhumanSkills

    Go press Ctrl+Shift+Esc this will open up task manager. From there on go to Performance and see how much Physical Memory (MB) you have available. You might be running another ram intensive program that has taken it's share of allocated memory. Make sure the -Xmx4096M is not exceeding that. Also the incremental garbage collection might be cool and all but it's not necessary. You can try changing Xincgc just to Xms1024M.

    Also note that you CAN use 4G to mean 4GB.
     
  13. You can try changing Xincgc just to Xms1024M.? Dosent that mean that this server will go back down to 1 GB? Cause there are to xmx's on my notepad. Wich one do I change the XMX to change the RAM? "Sorry imma nub at this"
     
  14. Offline

    Tallcraft

  15. Offline

    micdoodle8

    Holy upload speed... *bow*

    That's the only reason why I pay for dedicated hosting, because my upload speed is 2Mb/s ....
     
  16. Offline

    bobmatino17

    The instructions are great for someone who is using Ubuntu or Mint (very popular Debian-based Linux distributions) However, not all distributions install packages (in this case java) the same way. Other than that, it works fine for Debian based distros, but I would suggest putting a statement that it only works for certain distributions.
     
  17. Offline

    Bertware

    You don't have to get internet explorer 64bit!
    https://www.java.com/en/download/manual.jsp
    Search your version in this list ;)
    Use -xincgc or -xms128M or similar. Don't you ever dare to use -XMS1024M or higher values. That's only causing more unnecessary memory use.
    64 bit computers that want to run 64 bit java: Use Program Files
    64 bit computers that want to run 32 bit java: Use Program Files (x86)
    32 bit computers that want to run 32 bit java: Use Program files
    Just to make shure everyone gets it right ;)

    Note: If you run a home server, your upload speed will probably be a bottleneck
     
  18. Offline

    Paralith

    Thank you so much! I had a great server 9 months ago, but I forgot almost everything. Your guide is the only one that made sense! Thanks again.
     
  19. Offline

    iiSilentz

    what is number for a 16GB RAM computer that is 64 bit? if there is one
     
  20. Offline

    Tallcraft

    Intervalls of 1024 mb ... :)
     
  21. Offline

    freshlybaked123

    I jumped through the hoops as well. Downloaded 64 bit internet explorer. Downloaded 64 bit Java with all the fixings. Got notepad++ and made a new .bat file and replaced the bukkit starter all together. I used the code that is in another thread. I changed the path in the starter to reflect my new install of java 7 , so in the path it now reads jre7. I also changed the path in my system to point towards the program files folder where jre7 is now stored.
    I also changed the snapshot.jar path as the one in the examples is a different build. mine is 1.0.1 . I run 8 gigs of ram on my computer so when I changed the Xmx and Xms I set the Xms to 1024M and the Xmx to 3072M so I could have 3 gigs on my server.
    I ran my new server.bat and it boots up just fine. However, I cannot see the changes that I have made. I have another custom .bat file for the single player and it works fine and I can actually see the memory allocation changes I have made my hitting f3 , the changes are visible in the upper right hand corner. This is not the case on my server. I hit f3 and I see the same information as when I started.
    Is that normal? shouldn't I see a change?
    I don't get any error messages when I run the server.bat. Like I said , it boots just fine.
     
  22. Offline

    Techcuron

    Code:
    Unrecognized option: -d64
    Could not create the Java virtual machine.
    Press any key to continue . . .
        
    
    ?
     
  23. Offline

    InhumanSkills

    You probably don't have a 64bit operating system. If you are unsure go to
    Start<right click (computer)<properties
    Look for the System type. It should either say 64-bit or 32-bit Operating system.
    If you do have a 64bit system you also need to install 64bit java.
    Which you can find here.

    Good luck!

    You wont see any changes unless the server is under heavy load. The server will take what it needs but you set it's bounds. So the least it will take is 1Gb and the most is 3Gb.

    There is no pro/con for not using incremental numbers. Java uses binary numbers. One gigabyte is equal to 1024^3 bytes. 8 bits can have a value from 0-255 (256 values) also a power of 2 (2^8) anyway it comes all down to how your computer is engineered. Read more here.

    So in essence Java will use this system to allocate ram. Meaning that it will only take numbers that are in this binary standard.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  24. Offline

    Techcuron

    Have a 64bit system and have Java 64bit as well.
     
  25. Offline

    spartanl99

    Windows sucks, not Mac. I think you were confused for a moment there.
     
  26. Offline

    DuckyDanger


    I'm getting the same as this, with a 64-bit system and 64bit Java..
     
  27. Offline

    InhumanSkills

    Dare you to host a Minecraft server for more than 100 people on a Mac. LOL

    That's odd. It's been a while since I have played around with Ubuntu.
    I will take a look at it when I'm not swamped with my Aerospace Engineering. (College...)
    Please refer here for more help, while I learn more about the issue.

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 6, 2016
  28. Offline

    Guaele

    I have a 64 bits computer.
    Did i have to install a 64 bits JRE6?
     
  29. Offline

    Andrich2000

    I'm just wondering. Do u select how much ram u have? or how much goes to the server? Does it affect the computer (laptop) in anyway? My laptop is 6 gig ram and say i put 2 or 4 gigs into the server. Will it make all other things slower? What would the recommended amount of players be? (I need at least 8 slots) Thanks for your help!
    -Andrich2000
     
  30. Offline

    Deleted user

    Thank you :D.
     
Thread Status:
Not open for further replies.

Share This Page