You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@servicemix.apache.org by Claus Ibsen <cl...@gmail.com> on 2012/09/07 08:09:35 UTC

Re: ServiceMix on 64bit linux: Build failure.

Hi

Increase the memory to the JVM
[ERROR] java.lang.OutOfMemoryError: PermGen space

If you use Maven then we got some points for build Camel and how to
increase maven memory, using the MAVEN_OPTS
http://camel.apache.org/building.html



On Fri, Sep 7, 2012 at 7:59 AM, madhavb <bh...@gmail.com> wrote:
> My build on 64bit linux is failing with the following exception: What should
> I do to overcome this?
>
>
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 16:28.879s
> [INFO] Finished at: Fri Sep 07 06:41:34 TLT 2012
> [INFO] Final Memory: 109M/357M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:2.0.2:compile
> (default-compile) on project camel-nmr: Compilation failure
> [ERROR] Failure executing javac, but could not parse the error:
> [ERROR]
> [ERROR]
> [ERROR] The system is out of resources.
> [ERROR] Consult the following stack trace for details.
> [ERROR] java.lang.OutOfMemoryError: PermGen space
> [ERROR] at java.lang.ClassLoader.defineClass1(Native Method)
> [ERROR] at java.lang.ClassLoader.defineClass(ClassLoader.java:791)
> [ERROR] at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
> [ERROR] at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
> [ERROR] at java.net.URLClassLoader.access$100(URLClassLoader.java:71)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:361)
> [ERROR] at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
> [ERROR] at java.security.AccessController.doPrivileged(Native Method)
> [ERROR] at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> [ERROR] at
> org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)
> [ERROR] at com.sun.tools.javac.code.Types.subst(Types.java:2232)
> [ERROR] at com.sun.tools.javac.comp.Resolve.rawInstantiate(Resolve.java:344)
> [ERROR] at com.sun.tools.javac.comp.Resolve.selectBest(Resolve.java:687)
> [ERROR] at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:929)
> [ERROR] at com.sun.tools.javac.comp.Resolve.findMethod(Resolve.java:890)
> [ERROR] at
> com.sun.tools.javac.comp.Resolve.resolveConstructor(Resolve.java:1635)
> [ERROR] at
> com.sun.tools.javac.comp.Resolve.resolveConstructor(Resolve.java:1555)
> [ERROR] at com.sun.tools.javac.comp.Attr.visitApply(Attr.java:1479)
> [ERROR] at
> com.sun.tools.javac.tree.JCTree$JCMethodInvocation.accept(JCTree.java:1321)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribExpr(Attr.java:460)
> [ERROR] at com.sun.tools.javac.comp.Attr.visitExec(Attr.java:1279)
> [ERROR] at
> com.sun.tools.javac.tree.JCTree$JCExpressionStatement.accept(JCTree.java:1167)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:431)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribTree(Attr.java:418)
> [ERROR] at com.sun.tools.javac.comp.Attr.attribStat(Attr.java:480)
>
>
>
>
> --
> View this message in context: http://servicemix.396122.n5.nabble.com/ServiceMix-on-64bit-linux-Build-failure-tp5714363.html
> Sent from the ServiceMix - Dev mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen