Invalid maximum heap size PLEASE HELP

Discussion in 'Bukkit Help' started by ChuckNorris1212, May 20, 2013.

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

    ChuckNorris1212

    I am making a Bukkit server this is the code i put into note pad .bat ="C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx 1.5G -jar craftbukkit.jar
    PAUSE

    PLEASE HELP When i press the file it opens cmd and says about heap size and any key please help !
     
  2. Offline

    TheLastUnicorn

    I don't think 1.5G is enough to run a server. You can try changing 1.5G to 1500m, but it is probably that that just isn't enough to start your server.
     
  3. Offline

    ChuckNorris1212

    "C:\Program Files (x86)\Java\jre7\bin\java.exe" -Xmx 1.5G -jar craftbukkit.jar
    PAUSE
     
  4. Offline

    TheLastUnicorn

    Try this Chuck:
    Echo OFF
    java -Xmx1536m -Xms1000m -jar "craftbukkit.jar"
    PAUSE

    lol I hope some user named echo doesn't get a notification about that

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

    ChuckNorris1212

    IT says JAva is not reconized as a internal....

    I didnt do my Port Forwarding YET .I wanna do it after i mangae the server thing to work .Does POrt Forwarding effect the command ?
     
  6. Offline

    Necrodoom

    replace -Xmx 1.5G with -Xmx1536m
     
  7. Offline

    TheLastUnicorn

    No, this has nothing to do with port forwarding. Try what necrodoom said; -Xmx1536m
     
  8. Offline

    Bobcat00

    You shouldn't have a space between the -Xmx and the size value.
     
Thread Status:
Not open for further replies.

Share This Page