help increase ram on server

Discussion in 'Bukkit Help' started by DoomBreed, Jun 15, 2013.

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

    DoomBreed

    Hiaya all, i just managed to get a craftbukkitserver up and running (with worldedit and dynmap) and i was wondering how to increase the ram, from 1 to 2, or maybe 3? (i have 8 and not sure how much i can allocate)

    I made it work with 2ram for regular minecraft, with the .bat txt that is floating around, but i have no idea hoe to increase the craftserver.

    halp please :)
     
  2. Offline

    jon_r12

    Well to help You I Need More Information, like what operating system you haev (OS) a 32-bit or a 64-bit.
    32-bit users cannot add more then 1gb to the server that meens only 1024M is allowed in your server but if you have a 64-bit user then you can add more ram is much as you have & want, like 2048M (is 2gb), 3096M (is 3gb),
    4192(is 4gb)....and so on.
     
  3. Offline

    Bobcat00

    Also post the .bat file you're using now.
     
  4. Offline

    Gonff11

    Same question, I have a 64 bit java and a 64 bit OS but it won't let me use more than 1gb. .bat file as follows:
    java -Xms1024M -Xmx1024M -jar craftbukkit.jar -o true
    PAUSE
     
  5. Offline

    Bobcat00

    How much RAM do you have? What did you do to try to use more? What error did you get?
     
  6. Offline

    Gonff11

    I have 4gbs open and want to use two of them, My .bat file reads:
    java -Xms1024M -Xmx2048M -jar craftbukkit.jar -o true
    PAUSE
    The error message reads as follows:
    Error occurred during the initialization of UM
    Could not reserve enough space for object heap
    Error: Could not create the java Virtual Machine.
    Error: A fatal exception has occurred, program will exit.

    I have read the Assigning more ram to the server guide and it seems like I am following it, can you please help?
     
  7. Offline

    Gonff11

  8. Offline

    kin37ik




    either your system does not have enough ram availiable or you are using a 32 bit version of windows, use a 64-bit version of windows instead.
     
  9. Offline

    Gonff11

    I have a
    64 bit I downloaded it personally and I know it is functioning and I have a hard drive free for 100gb but I still get the same error
     
  10. Offline

    kin37ik

    are you using 32 bit java or 64 bit java??

    make sure you are using 64 bit java to address the additional space.
     
  11. Offline

    Gonff11

    Is there a way that I can see what version of java is currently being used? My computer came with a 32 bit and I downloaded the 64 bit
     
  12. Offline

    Bobcat00

    What command line (and PATH, if you set it) are you using to start Craftbukkit?
     
  13. Offline

    Gonff11

    Please excuse my ignorance but how does one identify that?
     
  14. Offline

    Bobcat00

    If you're on windows and using a .bat file, it's in that file.
     
  15. Offline

    Gonff11

    I am it simply says java. I downloaded something called java jdk and it may be routed through that would that be a problem?
     
  16. Offline

    Bobcat00

    Open a command prompt window and type java -version
    Paste the output.
     
  17. Offline

    kin37ik

    uninstall 32 bit java and just run the 64, they both run the same, just 64 can address the extra memory pool, if you are not sure what java you have, uninstall both and specifically download the 64 bit version again
     
  18. Offline

    tanveergt5


    Re-install Windows 7/8 64BIT
    Then download JAVA 64BIT
    Solved.
     
  19. Offline

    Gonff11

    java version "1.7.0_25"
    java(TM) SE Runtime Environment (build 1.7.0_25-b16)
    Java HotSpot(TM) Client UM (build 23.25-b01, mixed mode, sharing)

    My javas Path is C:\Program Files (x86)\Java\jdk1.7.0_25\bin
     
  20. Offline

    Bobcat00

    That's 32-bit Java. Go to http://www.java.com/en/download/manual.jsp and download the offline 64-bit installer and run it.

    Change your .bat file to have something like this (the quotes are required):

    "C:\Program Files\Java\jre7\bin\java.exe" -Xms2048m -Xmx2048m -jar craftbukkit.jar -o true
     
  21. Offline

    Gonff11

    It worked! But now nobody can join for some reason! When they try to join the error message reads: Failed to identify username, session authentication server unavailable.
    I get two warning in the log:
    Warning: Could not get information about this Craftbukkit version git-Bukkit-1.5.2-R0.1-b2771jnks <MC: 1.5.2> <Implementing API version 1.5.2-R0.1>
    Warning: Could not get information about this Craftbukkit version perhaps you are running a custom one?: ConnectException
    Do you have any idea what this problem could be?

    I fixed it! Thank you SOO much for helping me!

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 2, 2016
  22. Offline

    Bobcat00

    I don't know how much total RAM you have. I have 12 GB and set Java to use 4096m. That seems to work well.
     
  23. Offline

    Gonff11

    I also have 12 so I think I might do the same, thank you again for your help!
     
Thread Status:
Not open for further replies.

Share This Page