ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joshua Davis" <jsd2...@bellatlantic.net>
Subject RE: Object retention problem with javac
Date Fri, 19 Jan 2001 12:48:23 GMT
> -----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 <java> task.

Josh Davis
jsd2000@bellatlantic.net


Mime
View raw message