How to increase my server ram?

Discussion in 'Bukkit Help' started by Viloresi, Jul 24, 2011.

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


    Hello... i have a minecraft server, and my pc has 4gb ram but i don't know how to give more than 1GB(standard) of ram at my server !i've search everywhere but i can't find a tutorial for this...
    my server start with this command:
    @Echo OFF SET BINDIR=%~dp0 CD /D "%BINDIR%" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit-0.0.1-SNAPSHOT.jar PAUSE

    i will give thanks reputation everything want the man what help me...

    P.s.: as you can see i don't speak english as well

    please i need help...

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
    Last edited by a moderator: May 17, 2016
  2. When you start you server, use "-Xmx4G" instead of "-Xmx1G". You can also use "-Xms" to set a minimum amount of RAM that your Minecraft server will use.
  3. Offline


    thanks for the reply man... now when i try to put more than 2GB of ram an error appear, and it say
    "Error occurred during initialization of VM
    Could not reserve enough space for object heap
    Could not create the java virtual machine."
    Any solution :(? I have 4gb ram on my pc and i don't understand the problem
  4. Offline


  5. Offline


  6. Offline


    Hey my server says
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx2048M -Xms3072M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xmx2048M -Xms3072M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    Which im pretty sure is right but when i click it, it says

    Error occured during initialization of UM
    Incompatible minimum and maximum heap sizes specified
    Whats Wrong this really makes me mad
  7. Offline


    -Xmx2048M = Maximum amount of RAM to use.
    -Xms3072M = Minimum amount of RAM to use.
    Well, 2048M < 3072M. Java does not little paradoxes :p
    Try swapping those to values like that:

    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xmx3072M -Xms2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xmx3072M -Xms2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    Edit: And you could get another problem because:
    I do not know if you have a 32bit OS but
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)% [...]
    indicates that you use Java 32bit anyway.
  8. Offline


    :D[creeper]Thanks Kiwi i have a 64 bit computer, just to let you know, my server will be amazing. How do you find out if you have a 32 bit java?
  9. Offline


    This is what i have for the run.bat
    Echo OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1G -jar craftbukkit.jar
    and everytime i change the Xmx1G to Xmx2G or 4G it doesnt work. I have a 64 bit computer and im using Java 6 also. How an i change my RAM?? Please help me
  10. Offline


  11. Offline


    is 5120 the max amount of ram you can allocate? or is there a simple rule to follow in scaling up the amounts?
    I have a system with 32 gig of ram so i want to increase the potential :)
  12. Offline


    You can allocate as much as you want (Provided you still have enough for everything else (Windows/MAC OS, MC eg)).

    Just remember (If you didn't know), 1GB = 1024 MB

    So a server with 8GB RAM = 8192MB.
  13. Offline


    so 6gb = 6144mb?
  14. Offline


  15. Offline


    Get a new pc that has more ram or get an extra one that runs your server
  16. Offline


    You can allocate actually 1.5GB of RAM. Not just 1.
Thread Status:
Not open for further replies.

Share This Page