Solved How to add more RAM to Server

Discussion in 'Bukkit Help' started by dragonrykr, Jul 28, 2012.

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

    dragonrykr

    As said in title how to add more RAM to server. I need a code for increasing RAM and i have 64-bit needed for more that 1.5 GB RAM i think.
     
  2. Offline

    Necrodoom

    how much RAM your computer has and how much you want to give server? paste your start.bat aswell.
     
  3. Offline

    dragonrykr

    My computer has 4.00 GB RAM and i want for my server 2-3 GB RAM.
    My start.bat:
    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx1G -jar minecraft_server.jar
    PAUSE
    
     
  4. Offline

    whaling

    You can't have '2-3'. Just replace the 1 in "-Xmx1G" with however many GB of RAM you want (e.g. "-Xmx2G"). Also, if you plan to play Minecraft itself on that computer as well I don't advise going above 2 GB dedicated to the server. Stick to 1 if you can.
     
  5. Offline

    dragonrykr

    when i replace Xmx1G with Xmx2G it says this:
    Code:
    Error occurred during initialization of VM
    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.
     
  6. Offline

    whaling

    Post your new start.bat please. It worked perfectly when I tried it.
     
  7. Offline

    dragonrykr

    Code:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xincgc -Xmx2G -jar minecraft_server.jar
    PAUSE
    
     
  8. Offline

    whaling

    You don't appear to have the 64 bit version of Java installed- or if you do, you aren't using it. (It worked for me anyway) but give installing that a go.
     
  9. Offline

    dragonrykr

    It worked thanks man! :D
     
  10. Offline

    whaling

    The other possibility is that you don't have as much memory as you think.
     
  11. Offline

    dragonrykr

    i only didn't installed x64 bit java
    i had only 32 bit
     
  12. Offline

    whaling

    So that worked? Good :)
     
  13. Offline

    Skelly

    What if i have this code?:
    @ECHO OFF
    SET BINDIR=%~dp0
    CD /D "%BINDIR%"
    "%ProgramFiles%\Java\jre7\bin\java.exe" -Xmx1024M -Xms1024M -jar craftbukkit.jar
    PAUSE
    Which number do i change?
     
Thread Status:
Not open for further replies.

Share This Page