How do i add 7GB to My Minecraft Server?

Discussion in 'Bukkit Help' started by ZeinH, Dec 21, 2012.

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

    ZeinH

    I dont think it Alot i just wanna know how to add 7GB to my Minecraft Server
     
  2. Offline

    Necrodoom

    7GB of what? ponies?
     
  3. Offline

    LaxWasHere

    Change those #nmbrs in your start up script.
     
  4. Offline

    ZeinH

    Yes Ponies....
    Wat do u think?? RAM!
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE

    To What Numbers?
     
  5. Offline

    Necrodoom

    well, first off you need that 7GB on your own computer RAM, then change Xmx1024M to Xmx8192M, also you need java 64bit
     
    ifly6 likes this.
  6. Offline

    ZeinH

    Invalid maximum heap size
     
  7. Offline

    Necrodoom

    you dont have 8GB ram on your computer, then
     
  8. Offline

    ZeinH

  9. Offline

    Necrodoom

    ZeinH, you cant allocate ALL of your RAM to minecraft, since other programs on your computer also need RAM..
     
  10. Offline

    ZeinH

  11. Offline

    Necrodoom

    try it?
     
  12. Offline

    ZeinH

    Wat r the Numbers?

    Plus why cant i add 7 GB? I Cant or I Shouldnt?

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

    Necrodoom

    GB = 1024MB, seriously.
     
  14. Offline

    GearheadRed

    You need to do a bit more research before just assigning a value to the amount of ram your allocating to the Minecraft server. Based on whats running in your task bar I assume your going to try and run both a server and the Minecraft client. If that is the case, you first need to determine how much ram your system is currently utilizing prior to starting the server, likely including how much ram the client is utilizing. Keep in mind that additional ram will be consumed once you join the game with the client. Windows 7 along with what else is running in the back ground can use upwards of 2 gigs on its own. So to give yourself headroom there your already looking at 6 gigs available out of 8. Next if your going to run the client you will likely want another 1 gig available for that to prevent out of memory situations or running into your paging file which will kill your computers performance. To leave enough room for additional processes to have memory I would suggest also giving yourself another 1gb of ram left available to the system for breathing room. So really your probably looking more at 4 Gigs maximum that you would want to allocate to the Minecraft server. This is heavily debatable and others will likely suggest different methods/numbers. If your not going to run the Minecraft client you could up your server allocation to 5gigs. To figure out the value just take 1024 and multiply it by how many gigs you want to allow Minecraft to use(1024 = 1GB). Also as a side note, unless your world is absolutely HUGE or you are planning on having a very large volume of players on the server even 4 gigs is really un-necessary. Ive been running a server with a world upwards of a 4k chunk square radius(around 64k chunks+) with a player limit of 20, and its handled just fine with 2gigs allocated to it for around 4 months now.
     
  15. Offline

    strontkever

    just try -Xms6G -Xmx6G
     
  16. Offline

    GearheadRed

    Another point, you will want to make sure you are referencing the x64 version of Java. Many people only have the default x86 version of Java installed as that is what the main download link on the Java website provides. Make sure you have the x64 version installed ( http://javadl.sun.com/webapps/download/AutoDL?BundleId=71837 ) and your command starting the Minecraft server references the proper path to the x64 Java installation. The batch file I utilize has the ability to detect and use either depending on your processor architecture(I updated it for you to include 4GB of ram):

    Code:
    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" Echo "Starting using x64 Java"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx4096M -Xms4096M -jar "%~dp0craftbukkit*.jar"
    GOTO End
     
    Else "%PROCESSOR_ARCHITECTURE:~-2%"=="86" Echo "Starting using x86 Java"
    java -Xms512M -Xmx512M -jar "%~dp0craftbukkit*.jar"
    GOTO End
     
    :End
    PAUSE
    Just copy that out and open notepad, paste it in there, go to File > Save As > set the filename as Minecraft_Server.bat and set the save type as All Files (*.*)
    Make sure to save it into the same directory that has the craftbukkit .jar file in it.
    From there you should be able to double click that and it will automatically start up the Minecraft server.
     
  17. Offline

    ZeinH

    Hmm Okay,But Isnt that 4 GB? I want to use 7 GB.
     
  18. Offline

    GearheadRed

    Correct, it is 4 GB. I highly doubt you will be able to use 7 GB. If you read my post prior, it explains why this is unlikely the case and why I suggested 4GB. You can go ahead and try 7GB, the number would be 7168 however if you receive an error when trying to run the server it is an indication that you do not have enough AVAILABLE ram for this. Just because you have 8GB of ram does not mean its all available for you to capitalize on, other processes require it for the system to function as well. If you are absolutely determined to use 7GB of ram for Minecraft you may have to upgrade your system and add additional RAM(provided your motherboard supports it), or switch to a Linux based OS with a much smaller memory footprint(note doing this will effectively make the system a server and un-usable for what you are typically used to doing).
     
  19. Offline

    jwpwns

    use this

    java -Xms5000M -Xmx5000M -jar craftbukkit.jar -o true
    PAUSE
     
  20. Offline

    ZeinH

    Guys im getting the same error i cant add any ram I can only use 1024 i keep getting this error
    [​IMG]

    FIX IT PLEASE!

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

    Lolmewn

    How about a Google.
     
  22. Offline

    ZeinH

    Tried that :'(
     
  23. Offline

    Lolmewn

    Try 5G instead of 5000M
     
  24. Offline

    ZeinH

    No worky :(
     
  25. Offline

    Lolmewn

    What Java version do you have? Make sure you're running 64 bit version.
     
  26. Offline

    ZeinH

    jre7
    I got this computer today i gave it so he can add More RAM
    So he Formatted the computer :/
    So Basically the Latest :/
     
  27. Offline

    Lolmewn

    If you go into command prompt and type 'java -version' (without quotes), what does it tell you?
     
  28. Offline

    ZeinH

    [​IMG]

    CAN SOMEONE HELP ME?

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

    jwpwns

    name craftbukkit craftbukkit.jar or craftbukkit one will work
     
  30. Offline

    ZeinH

    [​IMG]

    Guys this:
    java -jar craftbukkit.jar
    Fixed it. Does it add enough RAM I Need to remove LAG?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: May 30, 2016
Thread Status:
Not open for further replies.

Share This Page