Solved Unable to allocate more than 2GB of ram to server

Discussion in 'Bukkit Help' started by Lilliputian, Jan 25, 2013.

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

    Lilliputian

    Hi guys,

    I am unable to allocate more than 2GB of ram to my server and I need someones help to allocate more as it lags a lot. Some information you should know is: My computer has 8GB of ram, runs on jre7 64-bit and the text on my .bat is:
    @echo off
    java -Xms1350M -Xmx1350M -jar CraftBukkit.jar.jar nogui
    pause
    *1350M is the max I can go.

    [diamond] Pls help. Thks![diamond]
     
  2. Offline

    TheOnlyRealTGS

    64 bit operating system too?
     
  3. Offline

    frymaster

    the chances are you have both a 64 and a 32 bit version of java (probably so it can be used for browser applets)

    try fully specifying the java pathname ie

    "c:\Program Files\Java\jre7\bin\java.exe" -Xms1350M -Xmx1350M -jar CraftBukkit.jar.jar nogui
     
  4. Offline

    Lilliputian

    I'm using Windows 7 Home Premium 64-bit.

    I tried to do what you said but when I opened my .bat the file just opened and closed itself.

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

    chad53105

    open it in notepad or notepad++. To open in notepad, open notepad, then click and drag the BAT file into the open white window. Then magic happens...
     
  6. Offline

    Scipione

    first check where your java 64bit is installed into, it should be the above mentioned path, check C:\Program Files\Java for a folder an alter the above written path (you should point to the bin subdirectory)
     
  7. Offline

    Lilliputian

    I changed my .bat file and tried to run it but then an error popped up saying:
    "C:\Program Files(x86)\Java\jre7\bin" is not recognized as a internal or external command, operable program or batch file.
    Press any button to continue......
     
  8. Offline

    bennie3211

  9. Offline

    Scipione

    C:\Program Files(x86)\ <--- this is a path to 32bit java, not 64
    be sure you have 64bit java installed, must be inside c:\program files (without (x86) )
     
  10. Offline

    Lilliputian

    I found out that I didn't have Java 7 64-bit installed and so I installed it and changed the .bat file to the correct coordinates(whatever you call that word) but it still could not run.

    This is my .bat file now:
    Echo off
    "C:\Program Files\Java\jre7\bin" -Xms1350M -Xmx1350M -jar CraftBukkit.jar.jar nogui
    pause
    And this is the error I get:
    "C:\Prgram Files\Java\jre7\bin" is not recognised as an internal or external, operable program or batch file.
    Press any key to continue......

    I tried what the youtuber said and added more RAM to Java but it still doesn't work... :(

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

    tiwar

    @Echo off
    java -Xms1350M -Xmx1350M -jar CraftBukkit.jar.jar nogui
    pause

    question: "jar.jar" <--is that a typo? if so just have "craftbukkit.jar"
    hope it works =)
    Lilliputian
     
  12. Offline

    Scipione

    try:
    "C:\Program Files\Java\jre7\bin\java" -Xms1350M -Xmx1350M -jar CraftBukkit.jar.jar nogui
    pause

    and double check if your CraftBukkit.jar.jar isn't called CraftBukkit.jar (;
     
  13. Offline

    Lilliputian

    I tried what Scipione typed but it said my .bat file was unable to access craftbukkit.jar (I changed the CraftBukkit.jar.jar to Craftbukkit.jar).
    I then tried to add to Echo off at the top of the .bat file but it still couldn't access the .bat file.
    I then again tried to change my CraftBukkit.jar to Craftbukkit.jar.jar and guessed what? It finally worked! I tried allocating more RAM to my server and it worked! Thanks to everybody in this thread who helped me and [diamond]s to you! :D

    What I would want to know is why I need to type CraftBukkit.jar.jar (why I need two .jars) and it would be nice if someone could tell me why. Thanks!

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

    Khan Jal

    You shouldn't need to have .jar.jar unless you added an extra one. Is windows explorer hiding known extension types? If you delete .jar it should still be recognized as an executable jar file under the type column. If it changes to just file type then you need to add the .jar back in.
     
  15. Offline

    Lilliputian

    I took out the extra .jar and runned the .bat file again but it said:
    Unable to excess craftbukkit.jar file
     
  16. Offline

    tiwar

    i beleive Khan Jal is right,if trying to rename the files extension,will give you a file called "craftbukkit.jar.jar" what happens if you just rename the file to just "craftbukkit" ?
     
Thread Status:
Not open for further replies.

Share This Page