Java Mailing List Archive

http://www.ant-tasks.com/

Apache Ant Archive

» Ant Users List
» Ant Developers List
Ant within Eclipse Junit OutOfMemoryException

Ant within Eclipse Junit OutOfMemoryException

2007-07-01       - By pam
Reply:     1     2  

Thank you J?rgen,
Previously  my tests were failing after 35 minutes,
Forking and using  maxmemory to 1023m, ( still within Eclipse ) a set of
tests finished at 110 minutes.
I'll try a longer one now.
Ta, Pam.

-----Original Message-----
From: Knuplesch, J?rgen [mailto:Juergen.Knuplesch@(protected)]
Sent: Friday, 29 June 2007 4:32 PM
To: Ant Users List
Subject: AW: Ant within Eclipse Junit OutOfMemoryException

Hi,

I use an Ant Script tu run a lot of Junit Tests. I had to change the
maxmemory to 1024m to let all the Tests run.
But sadly I used Ant directly and not Eclipse.

But this is how I solved my memory problem in the Ant-Task:


<junit errorproperty="dope.test.failed"
          failureproperty="dope.test.failed"
          maxmemory="1024m"
          fork="yes">
     <classpath>
       <path refid="junit.classpath"/>
     </classpath>
     <formatter type="brief" usefile="false"/>
     <formatter type="xml" usefile="true"/>
       <batchtest todir="${dope.report.dir}">
           <fileset dir="${cvs.exportbox}/source" >
               <include name="de/icongmbh/**/*Test.java"/>
               <include name="functional/**/*Test.java"/>
               <include name="regression/**/*Test.java"/>
           </fileset>
       </batchtest>
   </junit>




--
J?rgen Knuplesch                    www.icongmbh.de
icon Systemhaus GmbH                Tel. +49 711 806098-275
Sophienstra?e 40
D-70178 Stuttgart                   Fax. +49 711 806098-299

Gesch?ftsf?hrer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-----Urspr?ngliche Nachricht-----
Von: pam [mailto:pam.withnall@(protected)]
Gesendet: Freitag, 29. Juni 2007 01:36
An: 'Ant Users List'
Betreff: Ant within Eclipse Junit OutOfMemoryException


Hi,
I'm not sure if this is the correct forum for this question, but I'm running
Junit tests with ant, within Eclipse. I have a lot of tests, I wish to run
them overnight , then look at a JUnitReport.
Repeatedly I have abandoned this method because I get an
OutOfMemoryException after about 35 minutes.
----------------
BUILD FAILED
java.lang.OutOfMemoryError: Java heap space

Total time: 36 minutes 11 seconds
---------------

I have trawled the web, added -Xmx640m as a vm argument to the JVM and
variable ANT_OPS= -Xmx640m in the ant set up.

But still I get the error.

Does anyone have experience with this?
I am using Eclipse 3.1 and ant 1.6.5

Thanks,Pam.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected) For additional
commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)



---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.