I did a project on NetBeans under Ubuntu 11.10 with the Struts2 + Spring and Hibernate frames. The first run is fine, but when I run it a second or third time, I keep getting this exception. Without Maven, everything is going well. I installed maven with apt-get install, and yes, I added this line export MAVEN_OPTS=-Xmx512mto usr/bin/mvn, but no luck. How to get the best performance?
apt-get install
export MAVEN_OPTS=-Xmx512m
usr/bin/mvn
You should add this line:
export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=512M"
Please note that some users have reported that double quotes give problems, so you can use:
export MAVEN_OPTS=-Xmx512M -XX:MaxPermSize=512M
EDIT:
Since you are using Tomcat, use this:
...
permgen space , . "", , , , , , . , , , , , , , . , , , , , . .
-Xmx512m , . PermGen, .
-Xmx512m
Try increasing the PermGen space and place some flags to extract it. Below is more information: Duplicate "PermGen" in Tomcat 6