On 2009-10-06, Knuplesch, Juergen <juergen.knuple...@icongmbh.de> wrote:

> My build runs now with -Xmx1500m and still out of memory.

> It seems that the memory of big tasks I use is not garbage collected
> after I used them.  (e.g. XSLT with saxon on the classpath, junit with
> 2200 tests...)

Ant 1.7.1 has a few classloader leaks that have been plugged in trunk -
one affected <junit>[1] - so you could try a trunk build of Ant to see
whether this helps.

I'd first try to fork the junit tests into a new VM so the memory used
by the tests themselves is not used by Ant's VM and gets reclaimed once
the tests are done.

Stefan

[1] 
http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/junit/JUnitTask.java?r1=808350&r2=811435

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@ant.apache.org
For additional commands, e-mail: user-h...@ant.apache.org

Reply via email to