java.lang.OutOfMemoryError

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 35#237482551
    via GitHub by alephman
    ,
  • javac OutOfMemoryError when compiling IDEA 7
    via by Unknown author,
  • Ajc compiler is not incremental
    via by Unknown author,
  • QuickFIX/J Jira
    via by Unknown author,
  • Got the error below doing an "ant jar". Looks like the 1.6 Mac compiler needs a little more memory that whatever compiler you're using. Upping the memory to 256m on line 104 of core/build.xml resolved the issue. compile_main: [javac] Compiling 1431 source files to /Users/dustin/proj/quickfixj/core/target/classes/main [javac] [javac] [javac] The system is out of resources. [javac] Consult the following stack trace for details. [javac] java.lang.OutOfMemoryError: Java heap space [javac] at com.sun.tools.javac.util.Position$LineMapImpl.build(Position.java:139) [javac] at com.sun.tools.javac.util.Position.makeLineMap(Position.java:63) [javac] at com.sun.tools.javac.parser.Scanner.getLineMap(Scanner.java:1105) [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:512) [javac] at com.sun.tools.javac.main.JavaCompiler.parse(JavaCompiler.java:550) [javac] at com.sun.tools.javac.main.JavaCompiler.parseFiles(JavaCompiler.java:801) [javac] at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:353) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:279) [javac] at com.sun.tools.javac.main.Main.compile(Main.java:270) [javac] at com.sun.tools.javac.Main.compile(Main.java:69) [javac] at com.sun.tools.javac.Main.main(Main.java:54) BUILD FAILED ./build.xml:36: The following error occurred while executing this line: ./build.xml:27: The following error occurred while executing this line: ./core/build.xml:80: The following error occurred while executing this line: ./core/build.xml:85: The following error occurred while executing this line: ./core/build.xml:104: Compile failed; see the compiler error output for details.
    via by Dustin Vain,
  • Out of memory Error
    via by 843810,
    • java.lang.OutOfMemoryError: GC overhead limit exceeded at com.sun.tools.javac.comp.Resolve.findMethodInScope(Resolve.java:1626) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1719) at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:1671) at com.sun.tools.javac.comp.Resolve$9.doLookup(Resolve.java:2424) at com.sun.tools.javac.comp.Resolve$BasicLookupHelper.lookup(Resolve.java:3083) at com.sun.tools.javac.comp.Resolve.lookupMethod(Resolve.java:3334) at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2421) at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2415) at com.sun.tools.javac.comp.Resolve.resolveQualifiedMethod(Resolve.java:2410) at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:301) at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:236) at com.sun.tools.javac.comp.MemberEnter.actualEnterAnnotations(MemberEnter.java:923) at com.sun.tools.javac.comp.MemberEnter.access$600(MemberEnter.java:64) at com.sun.tools.javac.comp.MemberEnter$5.run(MemberEnter.java:876) at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:143) at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:129) at com.sun.tools.javac.comp.Enter.complete(Enter.java:512) at com.sun.tools.javac.comp.Enter.main(Enter.java:471) at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:982) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.enterTrees(JavacProcessingEnvironment.java:1015) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.<init>(JavacProcessingEnvironment.java:902) at com.sun.tools.javac.processing.JavacProcessingEnvironment$Round.next(JavacProcessingEnvironment.java:921) at com.sun.tools.javac.processing.JavacProcessingEnvironment.doProcessing(JavacProcessingEnvironment.java:1187) at com.sun.tools.javac.main.JavaCompiler.processAnnotations(JavaCompiler.java:1170) at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:856) at com.sun.tools.javac.main.Main.compile(Main.java:523) at com.sun.tools.javac.main.Main.compile(Main.java:381) at com.sun.tools.javac.main.Main.compile(Main.java:370) at com.sun.tools.javac.main.Main.compile(Main.java:361) at com.sun.tools.javac.Main.compile(Main.java:56) at com.sun.tools.javac.Main.main(Main.java:42)
    No Bugmate found.