Trying to add RAM to my server please help!

Discussion in 'Bukkit Help' started by Fancydude1025, May 30, 2012.

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

    Fancydude1025

    Hey i am trying to increase the amount of RAM on my server and i know i have to edit something on the craftbukkit starter but i don't know what.This is what it says when i go to edit the starter could somebody please tell me what to edit to be able to have like 4gigs of RAM.Thanks in advance! :)

    Echo OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx1024M -jar "craftbukkit-1.2.5-R1.0.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx1024M -jar "craftbukkit-1.2.5-R1.0.jar"
    PAUSE
     
  2. Offline

    Jade

    Code:
    OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -Xincgc -Xmx4096M -jar "craftbukkit-1.2.5-R1.0.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xincgc -Xmx4096M -jar "craftbukkit-1.2.5-R1.0.jar"
    PAUSE
    
    You need to change the 1024 in "-Xmx1024M" to "-Xmx4096MB" Seeing as there's 1024 MB in a Gigabyte of RAM.
    The above script has been edited to utilize 4GB of RAM, beware if you only have 4GB of RAM on your PC that it will not be able to boot due to OS overhead, and other applications.
     
  3. Offline

    Fancydude1025

    Do i change the one in the line with %ProgramFiles or the one inthe line with java?
     
  4. Offline

    Jade

    Sorry, I accidentally left a corrupt line of mention in there. Q.Q You do need to change the %ProgramFiles to the correct directory of your java, yes.
     
  5. Offline

    ShadowFury12

    go to this link and choose what amount you need <Edit by Moderator: Redacted downloadmoreram url>
     
    Last edited by a moderator: Mar 21, 2019
  6. Offline

    Rattar27

    shadowfury, dont be a troll
    that website is FAKE, it is physucally, at this moment in time, impossible to download RAM!
    P.S. look at the bottom of the sebsite, it says "This whole website is a joke :) hope it made you laugh"."
     
  7. Offline

    Fancydude1025

    Sorry bro you didn't get what i meant do i need to change -Xmx1024M in the first line or the second?
     
  8. Offline

    Rattar27

    just change both mate, it's what i do
     
  9. Offline

    Fancydude1025

    alright thanks
     
  10. Offline

    Paswaru

    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles%\Java\jre6\bin\java.exe" -Xincgc -Xmx4G -jar "craftbukkit-1.2.5-R1.0.jar"

    Changes are bold. You need to change the ProgramFiles path because %ProgramFiles(x86)% points to the directory where the 32bit version of JRE is installed. As a 32bit program it can't access more than 2GB of address space. With the programs overhead and the other types of memory the JVM allocates, you will be limited to 1.2GB to 1.5GB of heap.

    So to allocate 4GB you need to make sure you have a 64bit version of Windows and the 64bit version of JRE installed.
     
  11. Offline

    Fancydude1025

    can't i just put -Xmx4096m instead of -Xmx4g?
     
  12. Offline

    andrewpo

    You could do that, it would have the same effect.

    But you should be using -Xmx4G instead of -Xmx4g (notice the capital G)
     
  13. Offline

    Fancydude1025

    Thanks and i can just have a lower case m instead of a capital M
     
  14. Offline

    andrewpo

    Yes, the m should be in lower case.
     
  15. Offline

    Fancydude1025

    alright thanks!
     
Thread Status:
Not open for further replies.

Share This Page