Dedicating RAM

Discussion in 'Bukkit Help' started by moselekm, Aug 14, 2011.

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

    moselekm

    SOLVED

    For anyone that needs to know how to do it (whether they find it via google or what not).

    right click your batch/bat file (Bukkit Server Launcher), open with notepad++ or whatever editor you have. At the bottom you will see something like:
    Code:
    timeout/nobreak 1 >NUL
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64"  java -d64 -Xincgc -Xmx1560M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  java -Xincgc -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    
    PAUSE
    I know I run on x64 (x86 is 32 bit), so I just deleted that command and ended up with the end of the file looking like:

    Code:
    timeout/nobreak 1 >NUL
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64"  java -Xmx2G -Xms2G -jar craftbukkit-0.0.1-snapshot.jar
    
    PAUSE
    -Xmx stands for max and -Xms stands for minimum. I know I always have 2 gigs available (3 if I stop watching netflix), so I go with 2, leaving me with about a gig of RAM to myself. Run it and you should be good to go!
     
  2. Offline

    Orcem12

    That is the .bat
     
  3. Offline

    moselekm

    You mean the craftbukkit server launcher? Because anytime I paste that into there it just says [INFO] Unknown console command. Type "help" for help.

    I am pasting:
    java -Xmx1G -Xms1G -jar craftbukkit-0.0.1-snapshot.jar

    (the name of the jar mentioned in the other thread).
     
  4. Offline

    Orcem12

    Yes the server launcher
     
  5. Offline

    moselekm

    Right, it doesn't work. =\

    Nevermind figured it out myself.

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

    ImminentFate

    here, try this:http://forums.bukkit.org/threads/craftbukkit-auto-installer-beginners.26555/
    or if you just want the code:
    Code:
    @ECHO OFF
    
    title CraftBukkit Server
    color 17
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64"  java -d64 -Xincgc -Xmx1560M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86"  java -Xincgc -Xmx1024M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    
    PAUSE
    
     
Thread Status:
Not open for further replies.

Share This Page