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:[EMAIL 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:[EMAIL 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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]