Java 使用 Maven 在 IntelliJ 中构建时解决 PermGen 错误?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/19750340/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-12 19:54:59  来源:igfitidea点击:

Solve PermGen errors when building in IntelliJ with Maven?

javamavencompilationintellij-ideagigaspaces

提问by Niklas

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.

如果我在使用 Maven 在 IntelliJ 中构建我的项目时从应用程序服务器收到 PermGen OutOfMemoryError,我应该增加 Maven 使用的堆吗?我使用 Win7、8GB RAM,当我用 maven 重建项目时,我从应用程序服务器获得了 PermGen。

采纳答案by farmer1992

enter image description here

在此处输入图片说明

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

将 vm opt 添加到 mvn -XX:MaxPermSize=128M