IDEA PermGen space内存溢出

来源:互联网 发布:静默安装软件 编辑:程序博客网 时间:2024/06/02 23:26

项目中有多个模块,在用maven启动时,报出了以下错误

[INFO] BUILD FAILURE[INFO] ------------------------------------------------------------------------[INFO] Total time: 51.439 s[INFO] Finished at: 2017-10-20T09:49:38+08:00[INFO] Final Memory: 123M/3421M[INFO] ------------------------------------------------------------------------[ERROR] PermGen space -> [Help 1][ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.[ERROR] Re-run Maven using the -X switch to enable full debug logging.[ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles:[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/OutOfMemoryErrorException in thread "main" Exception in thread "DubboShutdownHook" 
看到关键字PermGen space,OutOfMemoryError,判断为内存溢出

解决方案

File -> Settings -> Build, Execution, Deployment / Build Tools / Maven / Runner下,找到VM Options选项,默认是空的,改为如下内容(或更大值)

-XX:MaxPermSize=1024M



阅读全文
0 0
原创粉丝点击