Solve PermGen errors when building in IntelliJ with Maven?

Niklas Rosencrantz picture Niklas Rosencrantz · Nov 3, 2013 · Viewed 23.9k times · Source

If I get PermGen OutOfMemoryError from the app server when building my project in IntelliJ with Maven, is it the heap that Maven uses that I should increase? I use Win7, 8GB RAM and I get PermGen from the appserver when I rebuild the project with maven.

Answer

farmer1992 picture farmer1992 · Nov 3, 2013

enter image description here

add vm opt to mvn -XX:MaxPermSize=128M