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
Solve PermGen errors when building in IntelliJ with Maven?
提问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
add vm opt to mvn -XX:MaxPermSize=128M
将 vm opt 添加到 mvn -XX:MaxPermSize=128M