ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran" <>
Subject Re: ant.system.gc()?
Date Tue, 05 Nov 2002 21:00:40 GMT

----- Original Message -----
From: "David McTavish" <>
To: "'Ant Users List'" <>
Sent: Tuesday, November 05, 2002 12:25 PM
Subject: ant.system.gc()?

> Is there anyway to tell ant to run the garbage collection? I have a fairly
> complicated build script that must execute peer projects so that it can
> properly import the dependent libraries. What is happening, is that every
> peer build process that is called stays in memory until the entire build
> process is complete. This results in an ever-increasing JVM, until the
> that the JVM throws an OutOfMemoryError. (This is occuring at about 80MB).
> COULD set the upper limit higher, but it seems a little ridiculous that
> takes 80 MB to compile the source.

This is more likely a memory leak than anything else.

-use java1.4 or fork javac (it leaked in 1.3)
-use ant1.5.1 that fixes leaks related to <ant>

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

View raw message