Hi Karl,

On 9 September 2011 00:43, Karl Wettin <karl.wet...@gmail.com> wrote:

>
> 8 sep 2011 kl. 19.30 skrev Harshana Eranga Martin:
>
> > Less important, after hours of running tests via mvn clean install I got
> an OOME:
> >
> > [INFO]
> ------------------------------------------------------------------------
> > [INFO] Building Apache Axis2 - Root 1.7.0-SNAPSHOT
> > [INFO]
> ------------------------------------------------------------------------
> > ...
> > constituent[29]:
> file:/usr/share/maven/lib/wagon-provider-api-1.0-beta-7.jar
> > constituent[30]: file:/usr/share/maven/lib/xercesMinimal-1.9.6.2.jar
> > ---------------------------------------------------
> > Exception in thread "main" java.lang.OutOfMemoryError: PermGen space
> >        at java.lang.ClassLoader.defineClass1(Native Method)
> >        at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
> >        at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
> >
> > I suppose passing on some Xmx to mvn works, but it would be nice if the
> POM already defined this. I'm on OS X with Java HotSpot(TM) 64-Bit Server VM
> (build 20.1-b02-384, mixed mode), so perhaps you're all on 32bit and thus
> never noticed it before. Would surprise me though :)
> >
> > Could you please share value of your MAVEN_OPTS variable?
>
> Nil. Nor do I have any options set in ~/.m2.
>

Ok.

Then as a workaround for the moment you can increase the permgen for the
maven.

Type "export MAVEN_OPTS="-Xmx512M -XX:MaxPermSize=128M"  in your console
which you run the maven and build the trunk again.

Thanks and Regards,
Harshana


>
>
>                karl
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org
> For additional commands, e-mail: java-user-h...@axis.apache.org
>
>


-- 
Thanks and Regards,
Harshana Martin
--
Harshana Eranga Martin
Software Engineer,
WSO2 Inc.
Web: http://wso2.com
           http://wso2.org

ECF Committer: http://www.eclipse.org/ecf/
Blog: http://harshana05.blogspot.com
Profile: https://www.google.com/profiles/harshana05

Reply via email to