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

    Viloresi

    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

    Viloresi

    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

    zaphodx

  5. Offline

    Viloresi

  6. Offline

    Nevcraft

    Hey my server says
    @ECHO OFF
    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"
    PAUSE
    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
    :(:mad:
     
  7. Offline

    Kiwii

    @Nevcraft
    -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:

    Code:
    @ECHO OFF
    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"
    PAUSE
    Edit: And you could get another problem because:
    I do not know if you have a 32bit OS but
    Code:
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)% [...]
    indicates that you use Java 32bit anyway.
     
  8. Offline

    Nevcraft

    :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

    Amaster123

    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
    PAUSE
    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

    CRAZYxMUNK3Y

  11. Offline

    jenks1999

    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

    CRAZYxMUNK3Y

    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

    jenks1999

    so 6gb = 6144mb?
     
  14. Offline

    CRAZYxMUNK3Y

    Correct
     
  15. Offline

    BuckitWorker

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

    MaliciousMan



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

Share This Page