ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Knuplesch, Jürgen <>
Subject AW: Ant within Eclipse Junit OutOfMemoryException
Date Fri, 29 Jun 2007 06:32:25 GMT

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"
        <path refid="junit.classpath"/>
      <formatter type="brief" usefile="false"/>
      <formatter type="xml" usefile="true"/>
        <batchtest todir="${}">
            <fileset dir="${cvs.exportbox}/source" >
                <include name="de/icongmbh/**/*"/>
                <include name="functional/**/*"/>
                <include name="regression/**/*"/>

Jürgen Knuplesch          
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 [] 
Gesendet: Freitag, 29. Juni 2007 01:36
An: 'Ant Users List'
Betreff: Ant within Eclipse Junit OutOfMemoryException 

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
Repeatedly I have abandoned this method because I get an OutOfMemoryException after about
35 minutes. 
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


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

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

View raw message