Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Solve PermGen errors when building in IntelliJ with Maven?

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.

like image 227
Niklas Rosencrantz Avatar asked Nov 03 '13 06:11

Niklas Rosencrantz


People also ask

What causes PermGen space error?

lang. OutOfMemoryError: PermGen Space is a runtime error in Java which occurs when the permanent generation (PermGen) area in memory is exhausted. The PermGen area of the Java heap is used to store metadata such as class declarations, methods and object arrays.

How run Mvn clean install in IntelliJ?

Click Run -> Edit Configurations -> Press + -> Search for "Maven" -> Locate "Command Line" field and enter in following maven commands "clean install" -> Press OK. Now click the green button to run that Run/Debug Configuration, this will maven clean install the module/project.


1 Answers

enter image description here

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

like image 177
farmer1992 Avatar answered Sep 20 '22 17:09

farmer1992