java - OutOfMemoryError with IntelliJ12 IDE -


have set heap size use 2096 in intellij12.

settings -> compiler -> java compiler -> maximum heap size (mb). 

but still 'error:java: java.lang.outofmemoryerror: java heap space' , when tried compiling simple java class. use compile fine intellij 11 .

couldn't able figure out why taking long time [ seen in status bar - full 'parsing java...' & tries compiling ] & failing after 5+ min.s opposed few seconds intellij11.

also, works fine compilation command line javac.

adding stacktrace:

information:using javac 1.7.0_25 compile java sources information:java: system out of resources. information:java: consult following stack trace details. information:java:   @ java.lang.integer.valueof(integer.java:642) information:java:   @ com.sun.tools.javac.parser.endposparser.storeend(endposparser.java:64) information:java:   @ com.sun.tools.javac.parser.endposparser.top(endposparser.java:77) information:java:   @ com.sun.tools.javac.parser.javacparser.term3(javacparser.java:1008) information:java:   @ com.sun.tools.javac.parser.javacparser.term2(javacparser.java:701) information:java:   @ com.sun.tools.javac.parser.javacparser.term1(javacparser.java:672) information:java:   @ com.sun.tools.javac.parser.javacparser.term(javacparser.java:628) information:java:   @ com.sun.tools.javac.parser.javacparser.term(javacparser.java:610) information:java:   @ com.sun.tools.javac.parser.javacparser.parsetype(javacparser.java:604) information:java:   @ com.sun.tools.javac.parser.javacparser.catchtypes(javacparser.java:1888) information:java:   @ com.sun.tools.javac.parser.javacparser.catchclause(javacparser.java:1876) information:java:   @ com.sun.tools.javac.parser.javacparser.parsestatement(javacparser.java:1771) information:java:   @ com.sun.tools.javac.parser.javacparser.blockstatements(javacparser.java:1598) information:java:   @ com.sun.tools.javac.parser.javacparser.block(javacparser.java:1561) information:java:   @ com.sun.tools.javac.parser.javacparser.block(javacparser.java:1575) information:java:   @ com.sun.tools.javac.parser.javacparser.methoddeclaratorrest(javacparser.java:2696) information:java:   @ com.sun.tools.javac.parser.javacparser.classorinterfacebodydeclaration(javacparser.java:2645) information:java:   @ com.sun.tools.javac.parser.javacparser.classorinterfacebody(javacparser.java:2573) information:java:   @ com.sun.tools.javac.parser.javacparser.classdeclaration(javacparser.java:2421) information:java:   @ com.sun.tools.javac.parser.javacparser.classorinterfaceorenumdeclaration(javacparser.java:2362) information:java:   @ com.sun.tools.javac.parser.javacparser.typedeclaration(javacparser.java:2351) information:java:   @ com.sun.tools.javac.parser.javacparser.parsecompilationunit(javacparser.java:2289) information:java:   @ com.sun.tools.javac.parser.endposparser.parsecompilationunit(endposparser.java:83) information:java:   @ com.sun.tools.javac.main.javacompiler.parse(javacompiler.java:595) information:java:   @ com.sun.tools.javac.main.javacompiler.parse(javacompiler.java:632) information:java:   @ com.sun.tools.javac.main.javacompiler.parsefiles(javacompiler.java:909) information:java:   @ com.sun.tools.javac.main.javacompiler.compile(javacompiler.java:824) information:java:   @ com.sun.tools.javac.main.main.compile(main.java:439) information:java:   @ com.sun.tools.javac.api.javactaskimpl.call(javactaskimpl.java:132) information:java:   @ org.jetbrains.jps.javac.javacmain.compile(javacmain.java:165) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.compilejava(javabuilder.java:364) information:java:   @ org.jetbrains.jps.incremental.java.javabuilder.compile(javabuilder.java:276) information:java: **errors occurred while compiling module 'proj-name'** information:compilation completed 1 error , 0 warnings in 8 min 32 sec information:1 error information:0 warnings **error:java: outofmemoryerror: insufficient memory** 

have tried disable gwt compiler?

you can turn off module check boxes, found @ project structure -> facets -> gwt

while isn't helpful oom errors, please post stack trace.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -