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.
Asked
Active
Viewed 2.4k times
14

Wouter
- 3,976
- 2
- 31
- 50

Niklas Rosencrantz
- 25,640
- 75
- 229
- 424
-
1What do you mean you get PermGen from the appserver? What does maven do in this build? Normally it just compiles and creates a jar or a war or an ear. How is it using "the appserver" in this? – Wouter Nov 03 '13 at 06:17
1 Answers
61
add vm opt to mvn -XX:MaxPermSize=128M

farmer1992
- 7,816
- 3
- 30
- 26
-
4
-
Thanks, never had this issue on Windows or Ubuntu, on a Mac was the only thing that made it work. You're a dev hero! =) ( Although 128m was too little to my mvn tomcat7:run) – Panthro May 22 '15 at 12:49