OutOfMemoryError: PermGen space

Discussion in 'Bukkit Help' started by fussionzz97, Mar 14, 2014.

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

    fussionzz97

    My server closes its self from time to time with this error.

    Log: http://pastebin.com/bwhYqQBq
    .bat contents: http://pastebin.com/1XXn5K2i
    Plugin List: http://pastebin.com/sxbiUEgP
    Worlds: 4

    Other info: 16GB of ram on the system, Plugins + bukkit all up to date, no errors what so ever. /mem details always seem to be perfect.
    Uptime: 10 minutes 4 seconds
    Current TPS = 20.001
    Maximum memory: 3,963 MB.
    Allocated memory: 3,963 MB.
    Free memory: 3,850 MB.
    World "main": 297 chunks, 67 entities.
    World "VSD": 0 chunks, 0 entities.
    World "survival": 0 chunks, 0 entities
    The End "space": 0 chunks, 0 entities.

    Any help please, thanks!
     
  2. Offline

    MightyMocha

    Do you get that error Right when you start? If not, please send the Full log, at when it starts
     
  3. Offline

    fussionzz97

  4. Offline

    Zahachos

    Your problem is probably in one of the plugins ... Re-Add each plugin one by one and pinpoint the error.

    Just looked at the log... Your server doesn't crash at you just get disconnected. I suggest you check your network connection and/or id the problem persists rent a server host on the internet. It's easy and reliable.
     
  5. Offline

    fussionzz97

    Zahach
    Code:
    [16:01:18] [Server thread/ERROR]: Encountered an unexpected exception
    java.lang.OutOfMemoryError: PermGen space
            at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:631) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
            at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit.jar:git-Bukkit-1.7.2-R0.3-b3020jnks]
    [16:01:19] [Server thread/INFO]: Stopping server
    It ran out of memory when i logged out

    I will be getting a host in the future but this shouldn't be happening.
     
  6. Offline

    Yani12

    Hey, know this is a bit late, but this is virtually the same issue I'm having at the moment, almost 50% of plugins the same, except I'm running a hosted server. Did you find any plugin issues at all?
     
  7. Offline

    LHammonds

    It is most-likely due to a poorly programmed plugin. Your best option is to isolate your plugins to determine which one is causing the issue.

    But as a temporary bandaid (though I don't recommend relying on this as a permanent fix), you can specify the amount of RAM being used in regard to this.

    Example parameter:
    Code:
    -XX:MaxPermSize=128m
    So, to start the server with 4GB of RAM, you could use this command:
    Code:
    "C:\Program Files\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx4096M -Xms4096M -jar craftbukkit.jar nogui
    Here is a start.bat file I use on my Windows PC:
    Code:
    @ECHO OFF
    SET RAM2USE=4096
    CD /D C:\CraftBukkit\
    TITLE HamCraft
     
    REM ** Look for a version of Java 7 that matches the OS (32-bit for 32-bit, 64-bit for 64-bit) **
    IF EXIST "%ProgramFiles%\Java\jre7\bin\java.exe" GOTO JAVA7DEFAULT
     
    REM ** Look for 32-bit version of Java 7 on 64-bit OS **
    IF EXIST "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" GOTO JAVA732BIT
     
    REM ** Look for a version of Java 6 that matches the OS (32-bit for 32-bit, 64-bit for 64-bit) **
    IF EXIST "%ProgramFiles%\Java\jre6\bin\java.exe" GOTO JAVA6DEFAULT
     
    REM ** Look for 32-bit version of Java 6 on 64-bit OS **
    IF EXIST "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" GOTO JAVA632BIT
     
    :JAVA7DEFAULT
    REM ** This will execute if run on a 32-bit OS with a 32-bit version of Java 7 **
    REM ** This will execute if run on a 64-bit OS with a 64-bit version of Java 7 **
    "%ProgramFiles%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
     
    :JAVA732BIT
    REM ** This will execute if run on a 64-bit OS with only a 32-bit version of Java 7 **
    "%ProgramFiles(x86)%\Java\jre7\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
     
    :JAVA6DEFAULT
    REM ** This will execute if run on a 32-bit OS with a 32-bit version of Java 6 **
    REM ** This will execute if run on a 64-bit OS with a 64-bit version of Java 6 **
    "%ProgramFiles%\Java\jre6\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
     
    :JAVA632BIT
    REM ** This will execute if run on a 64-bit OS with only a 32-bit version of Java 6 **
    "%ProgramFiles(x86)%\Java\jre6\bin\java.exe" -XX:MaxPermSize=128M -Xmx%RAM2USE%M -Xms%RAM2USE%M -jar craftbukkit.jar nogui
    GOTO DONE
     
    :DONE
    REM ** This will pause the screen so you can see any error messages after stopping the Minecraft server. **
    PAUSE
    
     
Thread Status:
Not open for further replies.

Share This Page