Intellij Idea 编译代码 提示 系统资源不足

rockjava 发布于 2013/01/21 12:53
阅读 10K+
收藏 1

工程很大,在导入Intellij Idea后编译时提示如下错误,我修改了idea64.exe.vmoptions加大了内存,也调整了java compile的 heap size为512m 编译方式是javac(使用eclipse方式编译好多源文件提示语法错误),请问该问题该怎么处理?

Information:java: 系统资源不足。
Information:java: 有关详细信息,请参阅以下堆栈追踪。
Information:java: at java.util.Arrays.copyOf(Arrays.java:2882)
Information:java: at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
Information:java: at java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:390)
Information:java: at java.lang.StringBuilder.append(StringBuilder.java:119)
Information:java: at org.jetbrains.jps.javac.OptimizedFileManager.collectFromArchive(OptimizedFileManager.java:139)
Information:java: at org.jetbrains.jps.javac.OptimizedFileManager.list(OptimizedFileManager.java:98)
Information:java: at javax.tools.ForwardingJavaFileManager.list(ForwardingJavaFileManager.java:59)
Information:java: at com.sun.tools.javac.jvm.ClassReader.fillIn(ClassReader.java:2130)
Information:java: at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1781)
Information:java: at com.sun.tools.javac.code.Symbol.complete(Symbol.java:386)
Information:java: at com.sun.tools.javac.jvm.ClassReader.completeOwners(ClassReader.java:1793)
Information:java: at com.sun.tools.javac.jvm.ClassReader.complete(ClassReader.java:1772)
Information:java: at com.sun.tools.javac.code.Symbol$ClassSymbol.complete(Symbol.java:763)
Information:java: at com.sun.tools.javac.code.Symbol$ClassSymbol.members(Symbol.java:700)
Information:java: at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.findAccessMethod(ClassReader.java:1290)
Information:java: at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompound(ClassReader.java:1280)
Information:java: at com.sun.tools.javac.jvm.ClassReader$AnnotationDeproxy.deproxyCompoundList(ClassReader.java:1269)
Information:java: at com.sun.tools.javac.jvm.ClassReader$AnnotationCompleter.enterAnnotation(ClassReader.java:1444)
Information:java: at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
Information:java: at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
Information:java: at com.sun.tools.javac.comp.Enter.complete(Enter.java:485)
Information:java: at com.sun.tools.javac.comp.Enter.main(Enter.java:442)
Information:java: at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:822)
Information:java: at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
Information:java: at com.sun.tools.javac.main.Main.compile(Main.java:353)
Information:java: at com.sun.tools.javac.api.JavacTaskImpl.call(JavacTaskImpl.java:115)
Information:java: at org.jetbrains.jps.javac.JavacMain.compile(JavacMain.java:136)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compileJava(JavaBuilder.java:319)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.compile(JavaBuilder.java:231)
Information:java: at org.jetbrains.jps.incremental.java.JavaBuilder.build(JavaBuilder.java:145)
Information:java: at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:963)
Information:java: Errors occurred while compiling module 'partner_qg'
Information:Compilation completed with 1 error and 12 warnings in 7 min 0 sec
Information:1 error
Information:12 warnings
Error:java: OutOfMemoryError: insufficient memory

加载中
1
rockjava
rockjava

引用来自“红薯”的答案

内存不足,这有什么好说的,加呗?
老大,刚刚弄好了,内存我已经加到了1500M了,依然报这个错误,刚刚发现在Compiler下面有个Compiler Process heap size 的参数,默认的是700,我调整到1000后,就能顺利编译通过了。
安静听歌
安静听歌
要用那么大的内存啊,,,我的256跑了好久了,,,设置大点会不会变快呢
rockjava
rockjava
回复 @liango : Darcula
liango
liango
乌黑的idea用的什么主题啊?
0
红薯
红薯
内存不足,这有什么好说的,加呗?
返回顶部
顶部