java.lang.OutOfMemoryError: GC overhead limit exceeded

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via GitHub by puntogil
, 1 year ago
GC overhead limit exceeded
java.lang.OutOfMemoryError: GC overhead limit exceeded
at com.sun.tools.javac.parser.JavaTokenizer.readToken(JavaTokenizer.java:686)
at com.sun.tools.javac.parser.Scanner.ensureLookahead(Scanner.java:102)
at com.sun.tools.javac.parser.Scanner.token(Scanner.java:95)
at com.sun.tools.javac.parser.JavacParser.peekToken(JavacParser.java:310)
at com.sun.tools.javac.parser.JavacParser.peekToken(JavacParser.java:306)
at com.sun.tools.javac.parser.JavacParser.term3(JavacParser.java:1249)
at com.sun.tools.javac.parser.JavacParser.term2(JavacParser.java:909)
at com.sun.tools.javac.parser.JavacParser.term1(JavacParser.java:880)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:836)
at com.sun.tools.javac.parser.JavacParser.term(JavacParser.java:816)
at com.sun.tools.javac.parser.JavacParser.parseExpression(JavacParser.java:779)
at com.sun.tools.javac.parser.JavacParser.variableInitializer(JavacParser.java:2291)
at com.sun.tools.javac.parser.JavacParser.variableDeclaratorRest(JavacParser.java:3035)
at com.sun.tools.javac.parser.JavacParser.variableDeclaratorsRest(JavacParser.java:3006)
at com.sun.tools.javac.parser.JavacParser.variableDeclarators(JavacParser.java:2989)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2441)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2337)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2308)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2322)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2480)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2356)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2488)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.blockStatements(JavacParser.java:2337)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2308)
at com.sun.tools.javac.parser.JavacParser.block(JavacParser.java:2322)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2480)
at com.sun.tools.javac.parser.JavacParser.blockStatement(JavacParser.java:2391)
at com.sun.tools.javac.parser.JavacParser.parseStatementAsBlock(JavacParser.java:2356)
at com.sun.tools.javac.parser.JavacParser.parseStatement(JavacParser.java:2484)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.