ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jim Allers" <...@advancedreality.com>
Subject RE: Memory leaks with ant 1.5.x! Searching for a fix
Date Thu, 13 Mar 2003 19:53:02 GMT
Which tasks are you using in your build?

The Eclipse ant integration makes an attempt to isolate itself from memory leaks by invoking
Ant in a new classloader every time.

Unfortunately, classloaders aren't the magic bullet for isolating Eclipse from any memory
leaks in an Ant task. In fact, since the Eclipse integration invokes a new classloader every
time, the memory leak can be even greater than you would expect since all the classes loaded
during the invocation will stick around.

Many Ant tasks appear not to causes leaks when used in Eclipse integration. The tasks which
leaked for me were the tasks which executed external processes. The process destroyer patch
fixing those problems for me. I have many custom tasks which invoke external processes and
I can run them without leaking. I have verified this with a profiler.

The big tasks which appear to leak in Eclipse once the process destroyer leak is fixed are
the xdoclet tasks. I don't know why they are leaking, but if they are leaking even with classloader
isolation, they must be somehow storing references in the parent classloader.

-----Original Message-----
From: Steve Loughran [mailto:steve_l@iseran.com] 
Sent: Thursday, March 13, 2003 11:19 AM
To: Ant Users List
Subject: Re: Memory leaks with ant 1.5.x! Searching for a fix


I see.  I also see that the process destroyer leak is nominally fixed in 1.6 -have you tested
this?

You should know that some leakage is out of our hands -javac is a case in point; it creates
lots of static content that never gets cleaned up, pre java1.4. But we need to do as much
as we can to make sure that the ant core does not leak and can scale up to big builds or extended
use.

Any leakage in things like <ant> and <taskdef> over existing task definitions
would things I am very interested in finding and killing.


----- Original Message -----
From: "Darin Swanson" <Darin_Swanson@us.ibm.com>
To: "Ant Users List" <user@ant.apache.org>
Sent: Thursday, March 13, 2003 07:07
Subject: RE: Memory leaks with ant 1.5.x! Searching for a fix


For the details of the discussion and findings you can look at: http://bugs.eclipse.org/bugs/show_bug.cgi?id=24448

Thanks
Darins





tsmets@netscape.net (Thomas SMETS)
03/12/03 05:08 PM
Please respond to "Ant Users List"


        To:     user@ant.apache.org ("Ant Users List")
        cc:
        Subject:        RE: Memory leaks with ant 1.5.x! Searching for a fix




Can you indicate what the problem is
and indicate what you really mean with a memory leak ?
I use eclipse 2.0.1 build 200208291828 with a ANT 1.5.1 (external installation not an integrated
version thru the plug-in) and I never noticed anything similar to that !

Thomas,



Jürgen Schlierf <juergen.schlierf@jplanet.de> wrote:

>Hello,
>I'm using ant with eclipse 2.1 RC1. The memory leaks caused problems
after
>20-30 builds. Does anyone know how to fix ant 1.5.1/2?
>
>Thanks
>Jürgen
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>


--

Thomas SMETS
rue J. Wytsmanstraat 62
1050 Brussels


__________________________________________________________________
Try AOL and get 1045 hours FREE for 45 days! http://free.aol.com/tryaolfree/index.adp?375380

Get AOL Instant Messenger 5.1 for FREE! Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promos=380455

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





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


Mime
View raw message