欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页

[InteliJ IDEA] 系统资源不足

程序员文章站 2022-04-11 18:16:08
...

情形1:

Information:java: 系统资源不足。
Information:java: 有关详细信息, 请参阅以下堆栈跟踪。
Information:java:   at java.util.HashMap.inflateTable(HashMap.java:316)
Information:java:   at java.util.HashMap.put(HashMap.java:488)
Information:java:   at java.util.HashSet.add(HashSet.java:217)
Information:java:   at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:941)
Information:java:   at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:911)
Information:java:   at com.sun.tools.javac.comp.Resolve.findFun(Resolve.java:998)
Information:java:   at com.sun.tools.javac.comp.Resolve.resolveMethod(Resolve.java:1419)
Information:java:   at com.sun.tools.javac.comp.Attr.visitIdent(Attr.java:2157)
Information:java:   at com.sun.tools.javac.tree.JCTree$JCIdent.accept(JCTree.java:1705)
Information:java:   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
Information:java:   at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
Information:java:   at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:449)
Information:java:   at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1521)
Information:java:   at com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1321)
Information:java:   at com.sun.tools.javac.comp.Attr.attribArgs(Attr.java:504)
Information:java:   at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1513)
Information:java:   at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:460)
Information:java:   at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1294)
Information:java:   at com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1167)
Information:java:   at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480)
Information:java:   at com.sun.tools.javac.comp.Attr.attribStats(Attr.java:496)
Information:java:   at com.sun.tools.javac.comp.Attr.visitBlock(Attr.java:918)
Information:java:   at com.sun.tools.javac.tree.JCTree$JCBlock.accept(JCTree.java:781)
Information:java: Errors occurred while compiling module 'game-gong'
Information:javac 7 was used to compile java sources
Information:Module "game-gong" was fully rebuilt due to project configuration/dependencies changes
Information:2018/2/25 下午4:46 - Compilation completed with 1 error and 11 warnings in 1m 54s 957ms
Error:java: OutOfMemoryError: insufficient memory

原因:idea设置编译器内存默认为700MB,需求超过这个范围则会抛出以上错误
解决方案:
若是以下操作,无效果,尝试删除项目,重新导入。
1.打开idea setting
[InteliJ IDEA] 系统资源不足
2.修改编译器内存上限
[InteliJ IDEA] 系统资源不足