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:
- Open the tomcat server properties (on the Services tab)
- On the Platform tab, add the following to VM Options:
-XX:MaxPermSize=256M
