Hi,

You are setting to the wrong option. Please use the following:

MAVEN_OPTS=-XX:MaxPermSize=384m

Thanks,
Raymond

--------------------------------------------------
From: "Luciano Resende" <[EMAIL PROTECTED]>
Sent: Monday, June 16, 2008 11:09 AM
To: "tuscany-dev" <tuscany-dev@ws.apache.org>
Cc: <[EMAIL PROTECTED]>
Subject: Top-down build failing with java.lang.OutOfMemoryError

Is anyone seeing something simmilar as below when trying to run a
top-down build for SCA ?
I'm using red-hat linux and have set MAVEN_OPTS as MAVEN_OPTS=-Xmx1536m
Below is the error I get :


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: PermGen space
       at java.lang.ClassLoader.defineClass2(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at com.sun.tools.javac.parser.Keywords.<init>(Keywords.java:75)
       at com.sun.tools.javac.parser.Keywords.instance(Keywords.java:33)
       at com.sun.tools.javac.parser.Parser$Factory.<init>(Parser.java:64)
at com.sun.tools.javac.parser.Parser$Factory.instance(Parser.java:47) at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:136) at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:46)
       at com.sun.tools.javac.main.Main.compile(Main.java:589)
       at com.sun.tools.javac.main.Main.compile(Main.java:544)
       at com.sun.tools.javac.Main.compile(Main.java:85)
       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:585)
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.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)



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: PermGen space
       at java.lang.ClassLoader.defineClass2(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:719)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:160)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:254)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at org.codehaus.plexus.compiler.javac.IsolatedClassLoader.loadClass(IsolatedClassLoader.java:56)
       at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
       at com.sun.tools.javac.parser.Keywords.<init>(Keywords.java:75)
       at com.sun.tools.javac.parser.Keywords.instance(Keywords.java:33)
       at com.sun.tools.javac.parser.Parser$Factory.<init>(Parser.java:64)
at com.sun.tools.javac.parser.Parser$Factory.instance(Parser.java:47) at com.sun.tools.javac.main.JavaCompiler.<init>(JavaCompiler.java:136) at com.sun.tools.javac.main.JavaCompiler.instance(JavaCompiler.java:46)
       at com.sun.tools.javac.main.Main.compile(Main.java:589)
       at com.sun.tools.javac.main.Main.compile(Main.java:544)
       at com.sun.tools.javac.Main.compile(Main.java:85)
       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:585)
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.CompilerMojo.execute(CompilerMojo.java:114) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:447) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:539) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:311)


[INFO] ------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ------------------------------------------------------------------------
[INFO] BUILD ERRORS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 37 minutes 24 seconds
[INFO] Finished at: Mon Jun 16 11:02:32 PDT 2008
[INFO] Final Memory: 106M/1505M
[INFO] ------------------------------------------------------------------------


--
Luciano Resende
Apache Tuscany Committer
http://people.apache.org/~lresende
http://lresende.blogspot.com/

Reply via email to