Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 30934 invoked from network); 19 Jan 2001 12:31:37 -0000 Received: from immtapop3.bellatlantic.net (199.45.40.140) by h31.sny.collab.net with SMTP; 19 Jan 2001 12:31:37 -0000 Received: from pavilion (adsl-151-202-146-58.nyc.adsl.bellatlantic.net [151.202.146.58]) by immtapop3.bellatlantic.net (8.9.1/8.9.1) with SMTP id HAA22005 for ; Fri, 19 Jan 2001 07:31:37 -0500 (EST) From: "Joshua Davis" To: Subject: RE: Object retention problem with javac Date: Fri, 19 Jan 2001 07:48:23 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) In-Reply-To: <41FBBB1B17AFD4119ECE0003470888360BF0AB@wbnsmail.gtl.com> X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Importance: Normal X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N > -----Original Message----- > From: Nick Reeves [mailto:Nick.Reeves@gtl.com] > Sent: Friday, January 19, 2001 4:43 AM > To: 'ant-dev@jakarta.apache.org' > Subject: Object retention problem with javac > > I noticed the memory usage of my Ant tasks was growing large so I ran Ant > with the Heap analysis tool and got the follow results. > ... snip ... > > The problem with this is that since javac runs in the same JVM it > holds onto > 4 objects (Hashtable entry, Identifier, String, char array) for > every unique > Java language identifer ever seen since the build started. > > Solution proposed: run calls to javac inside their own ClassLoader > > Comments ? > Just a thought: A potential quick fix could be to run javac in it's on JVM. Something like a 'fork' attribute on the task. Josh Davis jsd2000@bellatlantic.net