Re: Maven in Cruisecontrol + Out Of Memory error

2004-09-30 Thread Brett Porter
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?

Cheers,
Brett

On Thu, 30 Sep 2004 11:11:42 +0100, Ian Black [EMAIL PROTECTED] 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.
 So...it 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 project.properties 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 (http://www.grisoft.com).
 Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven in Cruisecontrol + Out Of Memory error

2004-09-30 Thread Ian Black
Hi Brett,

Running the maven goals outside of cruise works fine. No problems.
Is setting MAVEN_OPTS=-Xmx512m the same as setting
maven.compile.compilerargs=-J-mx512m in project.properties?

If not, where should the MAVEN_OPTS go?

From looking at the tak manager, the memory usage doesn't spike at any
point, so I'm guessing that it's Java heap.

Thanks.


-Original Message-
From: Brett Porter [mailto:[EMAIL PROTECTED]
Sent: 30 September 2004 11:13
To: Maven Users List
Subject: Re: Maven in Cruisecontrol + Out Of Memory error


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?

Cheers,
Brett

On Thu, 30 Sep 2004 11:11:42 +0100, Ian Black [EMAIL PROTECTED]
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.
 So...it 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 project.properties 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 (http://www.grisoft.com).
 Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven in Cruisecontrol + Out Of Memory error

2004-09-30 Thread Carlos Sanchez
Hi,

At http://www.jroller.com/page/carlossg/20040926 you can see two tips to
increase memory, e.g.

1)
MAVEN_OPTS=-Xmx512m 

2)
maven.junit.fork=true
maven.junit.jvmargs=-Xmx512m


Regards

Carlos Sanchez
A Coruña, Spain
http://www.jroller.com/page/carlossg/Weblog

Oness Project
http://oness.sourceforge.net


 -Original Message-
 From: Ian Black [mailto:[EMAIL PROTECTED] 
 Sent: Thursday, September 30, 2004 12:12 PM
 To: [EMAIL PROTECTED]
 Subject: Maven in Cruisecontrol + Out Of Memory error
 
 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.
 So...it 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 project.properties 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 (http://www.grisoft.com).
 Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Maven in Cruisecontrol + Out Of Memory error

2004-09-30 Thread Ian Black
Thanks a lot Carlos. I've a few things to try now. I'll post back with
updates.

P.S...I might be crying!

-Original Message-
From: Carlos Sanchez [mailto:[EMAIL PROTECTED]
Sent: 30 September 2004 11:10
To: 'Maven Users List'
Subject: RE: Maven in Cruisecontrol + Out Of Memory error


Hi,

At http://www.jroller.com/page/carlossg/20040926 you can see two tips to
increase memory, e.g.

1)
MAVEN_OPTS=-Xmx512m

2)
maven.junit.fork=true
maven.junit.jvmargs=-Xmx512m


Regards

Carlos Sanchez
A Coruña, Spain
http://www.jroller.com/page/carlossg/Weblog

Oness Project
http://oness.sourceforge.net


 -Original Message-
 From: Ian Black [mailto:[EMAIL PROTECTED]
 Sent: Thursday, September 30, 2004 12:12 PM
 To: [EMAIL PROTECTED]
 Subject: Maven in Cruisecontrol + Out Of Memory error

 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.
 So...it 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 project.properties 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 (http://www.grisoft.com).
 Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.766 / Virus Database: 513 - Release Date: 17/09/2004


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]