Error in Ram?

Discussion in 'Bukkit Help' started by ItWasUncalledFor, Jan 19, 2011.

Thread Status:
Not open for further replies.
  1. My logs read :
    2011-01-19 22:15:56 [INFO] Starting minecraft server version Beta 1.2_01
    2011-01-19 22:15:56 [WARNING] **** NOT ENOUGH RAM!
    2011-01-19 22:15:56 [WARNING] To start the server with more ram, launch it as "java -Xmx1024M -Xms1024M -jar minecraft_server.jar"
    2011-01-19 22:15:56 [INFO] Loading properties
    2011-01-19 22:15:56 [INFO] Starting Minecraft server on *:25565
    2011-01-19 22:15:56 [WARNING] **** FAILED TO BIND TO PORT!
    2011-01-19 22:15:56 [WARNING] The exception was: java.net.BindException: Address already in use: JVM_Bind
    2011-01-19 22:15:56 [WARNING] Perhaps a server is already running on that port?

    Whenever I try to start it :(.
    I use 4gb of Ram
    (@echo off
    "C:\Program Files\Java\jre6\bin\java.exe" -Xms4096M -Xmx4096M -jar craftbukkit.jar I use this)

    Any help?
     
  2. Ignore the ram, mine does that to me all the time. It just isn't communicating with java properly, at the initial start. I've had it say that, only use 134 megs of ram, then set off TNT, and have it go to an upwards of 1 gig. Don't worry about it.
     
  3. Offline

    TnT

    Have you tried running it with less RAM, like it suggests?
     
  4. Offline

    deerhunter101

    I use the same command "C:\Program Files\Java\jre6\bin\java.exe" -Xms4096M -Xmx4096M -jar craftbukkit.jar" I only have 6 gigs of ram and it works perfectly fine for me, I see your using 64 bit java same as me? 32 bit java can only use a max of 1.5 gigs of ram, whereas 64 allows for more.
     
  5. Im doing exactly what you're doing deerhunter :(
     
  6. Offline

    deerhunter101

    aww man that sucks :( I wish I knew how to help you, you try re-installing java 64 bit?
     
  7. Offline

    zipfe

    Emphasis mine.
     
  8. Offline

    TnT

    Sometimes Java binds to the port and won't let go on Windows. Reboot your PC and try again. I still maintain you've allocated too much RAM to your java process for the other error.
     
  9. i noticed this ONLY if i use the -Xincgc flag which is gay as i KNOW i have enough ram spare (it's shown in task manager) (64-bit java)
     
  10. Offline

    TnT

    It must be a co-incidence. I've never seen that myself running that flag, and most people are using the old way (-Xms) when I've seen them get that error.
     
  11. I have worked this out now after some random tests and me messing around. if your setting the ram it seems that if there is a small amount of memory left it will ditch the idea :p and show NOT ENOUGH RAM, so it seems there is a little fail safe so you dont use up all your ram and give the rest none, also do not and try and set say 4gb when you only have 4gb of ram, it will not work
    This though is with the Xincgc flag. i havent had any problems with the Xms and Xmx flags.
     
Thread Status:
Not open for further replies.

Share This Page