CB #714 possibly maxing memory and shutting down server

Discussion in 'Bukkit Help' started by MacG32, Apr 24, 2011.

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

    MacG32

    These are the error I've gotten and they end up shutting the server down.

    Code:
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] Exception in thread "Connection #67
    [SEVERE] read thread" Exception in thread "Connection #63 read thread"
    [SEVERE] Exception in thread "EbeanBackgroundThread"
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] Exception in thread "Connection #64 read thread"
    and

    Code:
    [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [SEVERE] Unexpected exception
    java.lang.OutOfMemoryError: GC overhead limit exceeded
     
  2. Offline

    Andre_9796

  3. Offline

    MacG32

    1. What OS are you using?
    Linux CentOS v5.6


    2. What architecture is the OS you are running?
    Both


    3. What version and architecture is your java install?
    Linux 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02, mixed mode)

    4. Are you running any wrappers?
    No


    5. What build of CraftBukkit are you running?
    714

    6. What command are you using to run your CraftBukkit server?
    #!/bin/bash
    java -Xms1024M -Xmx1024M -jar cb.jar

    7. What plugins are you running?
    BackupPlugin
    BigBrother
    CommandBook
    FalseBook
    GuestPrev
    Help
    iChat
    LastLogin
    Minecart Mania
    MyHome
    MyWarp
    Permissions
    PlugMan
    PrivateWarp
    TimeShift
    Unknown Command
    WorldEdit
    WorldGuard
    Yeditor

    8. What error are you getting (post your server.log file if possible)?
    Code:
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] Exception in thread "Connection #67
    [SEVERE] read thread" Exception in thread "Connection #63 read thread"
    [SEVERE] Exception in thread "EbeanBackgroundThread"
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] java.lang.OutOfMemoryError: Java heap space
    [SEVERE] Exception in thread "Connection #64 read thread"
    Code:
    [SEVERE] java.lang.OutOfMemoryError: GC overhead limit exceeded
    [SEVERE] Unexpected exception
    java.lang.OutOfMemoryError: GC overhead limit exceeded
    9. What have you tried already? Reporting it

    10. Have you tried any of the things below?
    Have a vanilla server running fine.
    All plugins are the latest.

    Note: I'm not trying to fix this problem. I'm not a programmer. I'm reporting it and this is as much information as I can give. Thank you.
     
  4. Well, the problem appears to be this.
    You have too many plugins, and not enough RAM. I would guess that about 3G should be good. How much RAM do you have? It's not craftbukkit or any of the plugins fault. look through your plugins and see if there's any you really don't need/use. delete those, any you should be fine!
     
  5. Offline

    MacG32

    I have 4GB of ram on my dedicated server. Thanks for trying to help, but this is a report to The Bukkit Team and nothing else. No troubleshooting is needed. Thanks again.
     
  6. Offline

    ultimak

    The thing is that you are not allocating enough ram to the server, and should be allocating more the 1gb to a server running that many plugins. Its not a problem with bukkit, but with your own settings.

    edit: edited my post because I just did a quick google search to make sure I was correct.
     
  7. Offline

    andrewkm

    java -Xms1024M -Xmx1024M -jar cb.jar
    into
    java -Xms2048M -Xmx2048M -jar cb.jar
     
  8. well, there is no need to report this to the bukkit team. Programmer or not, if you just open the .bat you use to start the server and type this
    java -Xms3G -Xmx3G -jar craftbukkit.jar
    it will work absolutely fine
    (change craftbukkit.jar to whatever you name your craftbukkit)

    If you need, i can write the bat myself for you. Enjoy!
     
  9. Offline

    MacG32

    It's been running perfectly until 714, so the allocated amount of memory has been more than enough for everything.

    I could run the server with more memory, but it doesn't require it.

    Linux doesn't use .bat files and the 64 bit version of Java has a memory limitation of 2GB, just like the 32 bit version's 1GB limit.

    Thanks all of the troubleshooting, but, as stated before, it's not needed. This was reported to make The Bukkit Team aware of the errors I received in their latest build. That's all.
     
  10. Offline

    Jeyge

    Just to make it perfectly clear, you aren't asking to have anything fixed or want any advice on how to fix the problems but just want to notify someone of your problems which may or may not be in the Bukkit code and may or may not be caused by a lack of memory?
     
    MacG32 likes this.
  11. Offline

    MacG32

    Fixed and correct. Thanks for playing. ;)

    Edit: Moved on to 716 and stopped watching thread.
     
  12. no, look. this IS NOT A BUKKIT PROBLEM. and i can just as easily write a .sh (sorry, my mind blanked). is it working better on 716?

    if you would just make a .sh that says this
    java -Xms2G -Xmx2G -jar cb.jar
    the whole problem would be fixed. and I know that 32x java works with 2G...
    Please don't be ignorant, the solution has been stated by three members.
     
  13. Offline

    TnT

    The bukkit devs don't read the forums looking for posts like this - if you want to report an error, go to leaky.bukkit.org.

    You can try to modify the command this way:
    java -Xincgc -Xmx1G -jar cb.jar

    Which changes up the default garbage collection. Notice I didn't ask to allocate more RAM.

    Otherwise expect people to help you as you're on a support forum, not a bug report forum.

    On top of that, you need to strip out those plugins if you want anyone to take this seriously. Saying you have ~20 plugins, and pasting a "java is out of heap space" error could easily be due to a plugin problem.
     
Thread Status:
Not open for further replies.

Share This Page