maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brett Porter <>
Subject Re: Maven in Cruisecontrol + Out Of Memory error
Date Thu, 30 Sep 2004 10:13:28 GMT
giving cruise control more memory won't pass it on to Maven - you need
to set MAVEN_OPTS=-Xmx512m or such to increase the memory size for
Maven (make sure this is in your environment before starting cruise
control though).

it's unusual that test:compile would have an out of memory error. What
happens when you run the projects outside of cruise control?

Are you actually running out of RAM, or just JAva heap?


On Thu, 30 Sep 2004 11:11:42 +0100, Ian Black <> wrote:
> Hi,
> First of all...I've already looked for help from the Cruisecontrol community
> on this one. One good soul from that community helped me for a few days but
> came to the conclusion that my problem was more of a Maven problem than
> anything else.
> Below is the outline of my problem. I'll try to be as succinct as possible,
> while trying to give all relevant details. I'd really appreciate any input
> on this problem as I'm very, very frustrated with this at this stage and
> it's paramount that we get cruisecontrol up and running again. Thank you.
> ****************************************************************************
> ****************************************************************************
> ******************************************************
> I'm running cruisecontrol with 10 projects. One of these (the last one) is a
> TestSuite project for running all our unit tests.
> Each time I run cruisecontrol I get as far as the last project and then the
> build fails due to an OutOfMemory error.
> Prior to this it was failing at the third to last project while attempting a
> test:compile. So I refactored the source files from scr/test for that
> project into src/java as it contained no unit tests.
> Then I got as far as the second to last project with the same result -
> OutOfMemory at test:compile.
> Did the same thing and now I get to the TestSuite project. Obviously I
> cannot refactor this project as it's running unit tests.
> would appear that test:compile is the culprit.
> I've tried supplying cruisecontrol with different combinations of
> memory...512, 1024 etc...
> PC has 1024 memory. P4.
> The guy from the cruise community feels that it's Maven that has the
> problem...perhaps holding onto memory and not letting it go or something.
> Everything runs fine outside of cruisecontrol. I can run the same goals that
> cruise is running on each individual project and get no OutOfMemory errors.
> I've ensured that each of the 10 projects only has 256 as a compiler arg in
> it's and reduced the memory supplied to cruisecontrol to
> 256 also.
> Still getting OutOfMemory when I get to the Testsuite project.
> The strange thing is this was all working a short time ago. Now I've spent
> the last 4 days playing around with this...all to no avail.
> If anyone has any ideas I'd be very, very grateful for any input.
> Thanks a lot,
> Ian.
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (
> Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message