Got this error?

java.lang.OutOfMemoryError: PermGen space

Here is how to increase the JVM's PermGen space:

export JAVA_OPTS="-XX:MaxPermSize=256M"

According to the Garbage Collection FAQ, "The permanent generation is used to hold reflective [objects] of the VM itself such as class objects and method objects. These reflective objects are allocated directly into the permanent generation, and it is sized independently from the other generations. Generally, sizing of this generation can be ignored because the default size is adequate. However, programs that load many classes may need a larger permanent generation."

And to increase the PermGen space tomcat uses Netbeans:

-XX:MaxPermSize=256M


CategoryLinux CategoryProgramming

MaxPermSize (last edited 2008-05-02 11:24:37 by DavidKeen)