Server crash (OutOfMemoryError: Java heap space)

Discussion in 'Bukkit Help' started by amunro, Jun 21, 2011.

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

    amunro

    This crash seems to happen daily!


    Code:
    2011-06-21 21:54:18 [SEVERE] Exception in thread "Thread-14"
    2011-06-21 21:54:41 [INFO] Stopping server
    2011-06-21 21:54:49 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-06-21 21:54:54 [SEVERE]     at java.util.ArrayList.<init>(ArrayList.java:132)
    2011-06-21 21:54:54 [SEVERE]     at java.util.ArrayList.<init>(ArrayList.java:139)
    2011-06-21 21:54:54 [SEVERE]     at java.lang.String.split(String.java:2333)
    2011-06-21 21:54:54 [SEVERE]     at java.lang.String.split(String.java:2403)
    2011-06-21 21:54:54 [SEVERE]     at com.griefcraft.util.config.ConfigurationNode.getProperty(Unknown Source)
    2011-06-21 21:54:54 [SEVERE]     at com.griefcraft.util.config.ConfigurationNode.getInt(Unknown Source)
    2011-06-21 21:54:54 [SEVERE]     at com.griefcraft.lwc.UpdateThread.run(Unknown Source)
    2011-06-21 21:54:54 [SEVERE]     at java.lang.Thread.run(Thread.java:722)
    2011-06-21 21:54:54 [SEVERE] Exception in thread "Connection #126 read thread"
    2011-06-21 21:54:54 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-06-21 21:54:54 [SEVERE] Exception in thread "Connection #116 read thread"
    2011-06-21 21:54:54 [SEVERE] Exception in thread "Connection #8 read thread"
    2011-06-21 21:54:54 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-06-21 21:54:54 [SEVERE] Exception in thread "Connection #32 read thread" 
    and

    Code:
    2011-06-19 04:46:34 [SEVERE] java.lang.OutOfMemoryError: Java heap space
    2011-06-19 04:46:34 [SEVERE]     at net.minecraft.server.World.c(World.java:2079)
    2011-06-19 04:46:34 [SEVERE]     at net.minecraft.server.Packet51MapChunk.<init>(Packet51MapChunk.java:27)
    2011-06-19 04:46:34 [SEVERE]     at net.minecraft.server.EntityPlayer.a(EntityPlayer.java:225)
    2011-06-19 04:46:38 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:286)
    2011-06-19 04:46:39 [SEVERE]     at net.minecraft.server.Packet10Flying.a(SourceFile:126)
    2011-06-19 04:46:39 [SEVERE]     at net.minecraft.server.NetworkManager.b(NetworkManager.java:226)
    2011-06-19 04:46:40 [SEVERE]     at net.minecraft.server.NetServerHandler.a(NetServerHandler.java:75)
    2011-06-19 04:47:46 [INFO] Stopping server
    2011-06-19 04:47:49 [SEVERE] Exception in thread "Thread-15" 
    For some reason, it seems to throw this out of memory error! Can someone please tell me how to fix this?

    The plugins i use: Logblock, commandbook, , falsebookcart, falsebookblock,falsebookchat,falsebookcore,falsebookextra,heroicdeath,iconomy,iconomychestshop,izone,lwc,mcrkitplugin,movecraft,myhome,nocheat,performancetweaks,permissions(v2),prefixer,runecraft,spyer,towny,worldedit,worldguard,xauth,xwarp.

    I run it on Java 1.7 with the following arguments: -Xmx1024M,-XX: ParallelGCThreads=8,-server,-Xincgc,-XX:+UseConcMarkSweepGC,-XX:+UseParNewGC,-XX:+CMSIncrementalPacing,-XX:+AggressiveOpts,-XX:+CMSParallelRemarkEnabled,-XX:+DisableExplicitGC,-XX:MaxGCPauseMillis=500,-XX:SurvivorRatio=16,-XX:TargetSurvivorRatio=90,-XX:+UseAdaptiveGCBoundary,-XX:-UseGCOverheadLimit,-Xnoclassgc,-XX:UseSSE=3,-XX: PermSize=128m,-XX:LargePageSizeInBytes=4m
     
  2. Offline

    cuco

    how much RAM do you have?
     
  3. Offline

    amunro

    2GB,

    Although, when it crashes, it still has another 300mb that it can utilise.
     
  4. Offline

    ghost0001

    i'm right there with you. i have 4GB DDR3 and still get it with a max heap of 2GB... I had no issues with 1.5. 1.6 is killing me.
     
  5. Offline

    unversed

    same here, never had a problem with 1.5 but my 1.6 server is always having this trouble.
     
  6. Offline

    Potetsjokolade

    Got same problem.
     
  7. Offline

    Naur

    Yup got that problem too. Yesterday i started a new server to try out pistons until industrialcraft gets updated to 1.7.2 and after about 8 hours i got that error and it rollbacked everything (Forgot about my autosave plugin :p).
    I got 4 Gb of ram (64 bit win7). I also can't increase the heap size past 1GB. I get an error when i try.
    Error occurred durin initialization of VM
    Could not reserve enough space for object heap
    Could not create Java virtual machine.

    My run.bat file:
    @ECHO OFF
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="64" "%ProgramFiles(x86)%\Java\jre6\bin\java.exe"

    -Xms2048M -Xmx2048M -jar "%~dp0craftbukkit-0.0.1-snapshot.jar"
    IF /I "%PROCESSOR_ARCHITECTURE:~-2%"=="86" java -Xms512M -Xmx512M -jar "craftbukkit-

    0.0.1-snapshot.jar"

    PAUSE
     
  8. Offline

    Logan deBC

    My server grew to 173MB, and I don't know how to get rid of the HUGE random chunks that are spawning everywhere. How do I cut that memory down? (I have the same problem)
     
Thread Status:
Not open for further replies.

Share This Page