You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Sridhar Laxmipuram Srinivasan <sr...@yahoo-inc.com> on 2011/02/02 05:00:28 UTC

Out of memory. GC overhead limit error

I get this weird error when I try to run maven...
[INFO] Compilation failure
Failure executing javac, but could not parse the error:


The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError: GC overhead limit exceeded
        at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:172)
        at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
        at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
        at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
        at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
        at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
        at com.sun.tools.javac.comp.Enter.complete(Enter.java:472)
        at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
        at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
        at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
        at com.sun.tools.javac.main.Main.compile(Main.java:353)
        at com.sun.tools.javac.main.Main.compile(Main.java:279)
        at com.sun.tools.javac.main.Main.compile(Main.java:270)
        at com.sun.tools.javac.Main.compile(Main.java:87)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
        at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
        at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
        at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
        at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
        at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)

Can somebody suggest how to resolve this issue.

thnkx
sridharl
(You learn from your failures and others will learn from your success)


Re: Out of memory. GC overhead limit error

Posted by Lucas Persson <lu...@oracle.com>.
I guess you have tried to increase the heap?
E.g export MAVEN_OPTS="-Xmx512m -Xms256m"
/Lucas


On 02/02/2011 05:00 AM, Sridhar Laxmipuram Srinivasan wrote:
> I get this weird error when I try to run maven...
> [INFO] Compilation failure
> Failure executing javac, but could not parse the error:
>
>
> The system is out of resources.
> Consult the following stack trace for details.
> java.lang.OutOfMemoryError: GC overhead limit exceeded
>          at com.sun.tools.javac.comp.Annotate.enterAnnotation(Annotate.java:172)
>          at com.sun.tools.javac.comp.MemberEnter.enterAnnotations(MemberEnter.java:743)
>          at com.sun.tools.javac.comp.MemberEnter.access$300(MemberEnter.java:42)
>          at com.sun.tools.javac.comp.MemberEnter$5.enterAnnotation(MemberEnter.java:711)
>          at com.sun.tools.javac.comp.Annotate.flush(Annotate.java:95)
>          at com.sun.tools.javac.comp.Annotate.enterDone(Annotate.java:87)
>          at com.sun.tools.javac.comp.Enter.complete(Enter.java:472)
>          at com.sun.tools.javac.comp.Enter.main(Enter.java:429)
>          at com.sun.tools.javac.main.JavaCompiler.enterTrees(JavaCompiler.java:819)
>          at com.sun.tools.javac.main.JavaCompiler.compile(JavaCompiler.java:727)
>          at com.sun.tools.javac.main.Main.compile(Main.java:353)
>          at com.sun.tools.javac.main.Main.compile(Main.java:279)
>          at com.sun.tools.javac.main.Main.compile(Main.java:270)
>          at com.sun.tools.javac.Main.compile(Main.java:87)
>          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>          at java.lang.reflect.Method.invoke(Method.java:597)
>          at org.codehaus.plexus.compiler.javac.JavacCompiler.compileInProcess(JavacCompiler.java:420)
>          at org.codehaus.plexus.compiler.javac.JavacCompiler.compile(JavacCompiler.java:141)
>          at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:493)
>          at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
>          at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
>          at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
>          at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
>          at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
>          at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
>
> Can somebody suggest how to resolve this issue.
>
> thnkx
> sridharl
> (You learn from your failures and others will learn from your success)
>
>

-- 
Oracle <http://www.oracle.com>
Lucas Persson | Principal Member of Technical Staff
Phone: +4684773644 <tel:+4684773644> | | | Mobile: +46730946656 
<tel:+46730946656>
Oracle Communications Platform
ORACLE Sweden | Folkungagatan 122 | 116 30 Stockholm

Oracle Svenska AB, KronborgsgrÀnd 17, S-164 28 KISTA, reg.no. 556254-6746
Green Oracle <http://www.oracle.com/commitment> Oracle is committed to 
developing practices and products that help protect the environment