“java.lang.OutOfMemoryError: PermGen space” Using Maven build in Netbeans Linux
I'd been searching to solve this problem in hours, then I finally found out the way.I was using netbeans as IDE and maven to build my java web program.I was actually using jetty to run my java web program that produce this error.I hope it can help you too.
This is the reference http://stackoverflow.com/questions/3101128/java-lang-outofmemoryerror-permgen-space-in-maven-build?rq=1 , but I'm gonna show you how to do that in Netbeans IDE.
In Netbeans set your Maven Home same with your terminal, here the way to find where the path Maven Home :
Run you netbeans then Tools -> Options -> Java -> Maven
Set your Maven Home
In the terminal execute :
Add the following option to the end of the file :
Steven Gunanto
This is the reference http://stackoverflow.com/questions/3101128/java-lang-outofmemoryerror-permgen-space-in-maven-build?rq=1 , but I'm gonna show you how to do that in Netbeans IDE.
In Netbeans set your Maven Home same with your terminal, here the way to find where the path Maven Home :
Run you netbeans then Tools -> Options -> Java -> Maven
Set your Maven Home
~$ sudo gedit ~/.profile
or~$ sudo nano ~/.profile
Add the following option to the end of the file :
export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m"
Restart your shell with :
sudo restartThanks,
Steven Gunanto