AndreiXwe February 2016

OutOfMemoryError on Eclipse using a webapp when compiling on browser

I receive the following error when I am trying to compile a webapp on browser:

[ERROR] OutOfMemoryError: Increase heap size or lower gwt.jjs.maxThreads
java.lang.OutOfMemoryError: Java heap space
    at java.util.Arrays.copyOf(Unknown Source)
    at java.lang.AbstractStringBuilder.expandCapacity(Unknown Source)
    at java.lang.AbstractStringBuilder.ensureCapacityInternal(Unknown Source)
    at java.lang.AbstractStringBuilder.append(Unknown Source)
    at java.lang.StringBuffer.append(Unknown Source)
    at java.io.StringWriter.write(Unknown Source)
    at java.io.PrintWriter.write(Unknown Source)
    at java.io.PrintWriter.write(Unknown Source)
    at java.io.PrintWriter.print(Unknown Source)
    at com.google.gwt.dev.util.AbstractTextOutput.printAndCount(AbstractTextOutput.java:161)
    at com.google.gwt.dev.util.AbstractTextOutput.print(AbstractTextOutput.java:117)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor._nameRef(JsToStringGenerationVisitor.java:1120)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:645)
    at com.google.gwt.dev.js.ast.JsNameRef.traverse(JsNameRef.java:121)
    at com.google.gwt.dev.js.ast.JsVisitor.doTraverse(JsVisitor.java:467)
    at com.google.gwt.dev.js.ast.JsVisitor.doAccept(JsVisitor.java:444)
    at com.google.gwt.dev.js.JsSourceGenerationVisitorWithSizeBreakdown.generateAndBill(JsSourceGenerationVisitorWithSizeBreakdown.java:71)
    at com.google.gwt.dev.js.JsReportGenerationVisitor.generateAndBill(JsReportGenerationVisitor.java:109)
    at com.google.gwt.dev.js.JsSourceGenerationVisitorWithSizeBreakdown.doAccept(JsSourceGenerationVisitorWithSizeBreakdown.java:63)
    at com.google.gwt.dev.js.ast.JsVisitor.accept(JsVisitor.java:109)
    at com.google.gwt.dev.js.JsToStringGenerationVisitor.visit(JsToStringGenerationVisitor.java:594)
    at com.google.gwt.dev.js.ast.JsInvocation.traverse(JsInvocation.java:91)
    at com.google.gwt.dev.js.ast.JsVisitor.doTra        

Answers


svasa February 2016

Try setting MaxPermSpace too : -Xms512m -Xmx1024m -XX:MaxPermSize=512m


grafight February 2016

Have you tried anything above 512/1024M? I have mine set in the 2-4g range...

Post Status

Asked in February 2016
Viewed 3,886 times
Voted 14
Answered 2 times

Search




Leave an answer