You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Magesh Umasankar <um...@apache.org> on 2002/06/18 21:37:14 UTC
Task to perform garbage collection
Hi,
I propose to create a very simple task named
<recyclememory/> or <collectgarbage/> that
* invokes System.runFinalization(); and then
* invokes System.gc();
This gives the build writer a chance to
suggest to the JVM to free up memory just
before start of a heavy-weight job, for
instance.
Comments?
Cheers,
Magesh
*********************************************
* When in doubt, mumble; when in trouble, *
* delegate; when in charge, ponder. *
* - James H. Boren *
*********************************************
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Task to perform garbage collection
Posted by Steve Loughran <st...@iseran.com>.
----- Original Message -----
From: "Magesh Umasankar" <um...@apache.org>
To: "Ant Developers List" <an...@jakarta.apache.org>
Sent: Tuesday, June 18, 2002 12:37
Subject: Task to perform garbage collection
> Hi,
>
> I propose to create a very simple task named
> <recyclememory/> or <collectgarbage/> that
>
> * invokes System.runFinalization(); and then
> * invokes System.gc();
>
> This gives the build writer a chance to
> suggest to the JVM to free up memory just
> before start of a heavy-weight job, for
> instance.
>
yeah, go for it. have a property to set the memory consumption stats too,
eh?
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>