You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cxf.apache.org by "O'Callaghan, Sean" <se...@iona.com> on 2007/03/02 12:46:57 UTC

Maven upgrade OutOfMemory exception

Hi,

Since upgrading to Maven 2.0.5, CXF fails to compile a clean build.
It runs out of memory when compiling the testutils classes.
Is there any flag/switch I can set in Maven config to workaround this?
This is on windows using jdk1.5.0_06

Thanks,

Seán.

Compiling 1197 source files to C:\CXF\trunk\testutils\target\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[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: Java heap space

Re: Maven upgrade OutOfMemory exception

Posted by Daniel Kulp <da...@iona.com>.
The MAVEN_OPTS=-Xmx512M would probably do it.

However, you might also want to try a newer JDK.   I haven't had an issue 
with 1.5.0_11, but I'm also on Linux.    

We probably could fork the compile in testutils.   It's quite large so it 
may be a good idea.   I think we had a problem with the forked javac on 
one of the platforms (OSX?), but that was a long time ago.    We'd have to 
test it a bit first.

Dan


On Friday 02 March 2007 06:46, O'Callaghan, Sean wrote:
> Hi,
>
> Since upgrading to Maven 2.0.5, CXF fails to compile a clean build.
> It runs out of memory when compiling the testutils classes.
> Is there any flag/switch I can set in Maven config to workaround this?
> This is on windows using jdk1.5.0_06
>
> Thanks,
>
> Seán.
>
> Compiling 1197 source files to C:\CXF\trunk\testutils\target\classes
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [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: Java heap space

-- 
J. Daniel Kulp
Principal Engineer
IONA
P: 781-902-8727    C: 508-380-7194
daniel.kulp@iona.com
http://www.dankulp.com/blog

Re: Maven upgrade OutOfMemory exception

Posted by ja...@mail.ooc.nf.ca.
Try setting the MAVEN_OPTS environment variable to the following (or higher maybe...):

export MAVEN_OPTS=-Xmx512M

Cheers,
Jon

On Fri, Mar 02, 2007 at 11:46:57AM -0000, O'Callaghan, Sean wrote:
> Hi,
> 
> Since upgrading to Maven 2.0.5, CXF fails to compile a clean build.
> It runs out of memory when compiling the testutils classes.
> Is there any flag/switch I can set in Maven config to workaround this?
> This is on windows using jdk1.5.0_06
> 
> Thanks,
> 
> Seán.
> 
> Compiling 1197 source files to C:\CXF\trunk\testutils\target\classes
> [INFO] ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [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: Java heap space