ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 2568] New: - Patch to resolve a memory leak
Date Wed, 11 Jul 2001 09:36:45 GMT
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2568

*** shadow/2568	Wed Jul 11 02:36:45 2001
--- shadow/2568.tmp.7140	Wed Jul 11 02:36:45 2001
***************
*** 0 ****
--- 1,25 ----
+ +============================================================================+
+ | Patch to resolve a memory leak                                             |
+ +----------------------------------------------------------------------------+
+ |        Bug #: 2568                        Product: Ant                     |
+ |       Status: NEW                         Version: Nightly build           |
+ |   Resolution:                            Platform: All                     |
+ |     Severity: Enhancement              OS/Version: Other                   |
+ |     Priority: Other                     Component: Core                    |
+ +----------------------------------------------------------------------------+
+ |  Assigned To: ant-dev@jakarta.apache.org                                   |
+ |  Reported By: robert.watkins@qsipayments.com                               |
+ |      CC list: Cc:                                                          |
+ +----------------------------------------------------------------------------+
+ |          URL:                                                              |
+ +============================================================================+
+ |                              DESCRIPTION                                   |
+ When using Ant repeatedly in a long-running process (such as in CruiseControl), 
+ memory leaks like a sieve. The major culprit to this is a reference to Project 
+ in the AntClassloader, which keeps the Project instance (and all the associated 
+ data) alive.
+ 
+ The supplied patch corrects this problem, along with a similar leak in 
+ IntrospectionHelper. The problem is corrected by making AntClassloader and 
+ IntrospectionHelper into BuildListeners, and having them clear out the relevant 
+ data upon a buildFinished event.

Mime
View raw message