Solved java.lang.OutOfMemoryError: PermGen space, incorrect?

Discussion in 'Bukkit Help' started by Debels, Dec 19, 2013.

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

    Debels

    I'm running a server on 4GB of ram and I keep getting this OutOfMemoryError, when the server isn't even using 1 GB of ram... What can cause this?

    I'm running it on linux ubuntu.

    I start the server with:

    java -Xmx4096M -jar craftbukkit.jar

    My plugins are: BKCommonLib, Craftbook, dynmap, NoLagg, Pex, WE, WG, Vault.

    I'm using the latest beta build of 1.7.2 aka #2969

    but the error started to appear when I only had: Craftbook, Pex, Vault, WE and WG.

    What can cause this?
     
  2. Offline

    Kayota

  3. you can try adding
    Code:
    -XX:PermSize=256m
    after your -Xmx argument (and before your -jar bukkit.jar argument)
     
    Debels likes this.
  4. Offline

    Debels

    JamiePhonic that seems to have solved the problem, thanks.
     
  5. brilliant :)
    please mark this thread as solved in the post settings so others can benefit!
     
Thread Status:
Not open for further replies.

Share This Page