使用 Maven 在 IntelliJ 中构建时解决 PermGen 错误? [英] Solve PermGen errors when building in IntelliJ with Maven?

查看:29
本文介绍了使用 Maven 在 IntelliJ 中构建时解决 PermGen 错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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.

推荐答案

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

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

这篇关于使用 Maven 在 IntelliJ 中构建时解决 PermGen 错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆