ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: ant.system.gc()?
Date Wed, 06 Nov 2002 08:09:58 GMT
On Tue, 5 Nov 2002, David McTavish <> wrote:

> This results in an ever-increasing JVM, until the point that the JVM
> throws an OutOfMemoryError.

If the OOME occurs, the garbage collector has already been called -
doing so explicitly won't help.

Which version are you using?  Ant 1.5 has a known memory leak in <ant>
and <antcall> if you use nested <property>/<param> tags.  1.5.1 is
supposed to fix that.

> but it seems a little ridiculous that ant takes 80 MB to compile the
> source.

That could hint that javac and not Ant is the problem.  You could fork
<javac> or use jikes (or any other compiler you like) to get around
known resource leaks in javac itself.


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

View raw message