Loading...
середу, 11 червня 2014 р.

Maven jetty:run in intellij idea: java.lang.OutOfMemoryError: PermGen space

Often time, IntelliJ Idea with maven jetty plugin may hits the following java.lang.OutOfMemoryError: PermGen space error when trying to execute jetty:run target.

java.lang.OutOfMemoryError: PermGen space
        at java.lang.ClassLoader.defineClass1(Native Method)
        at java.lang.ClassLoader.defineClass(ClassLoader.java:620)
        at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124)
To fix it you just need to set more PermGen memory for maven. So here is the manual:

1. Go to File -> Settings
2. Type 'Maven'
3. Go to Maven -> Runner
4. Add the following VM options: -XX:PermSize=256M -XX:MaxPermSize=512M

0 коментарі:

 
TOP