Use
Runtime.getRuntime().gc();
or
System.gc();
Though keep in mind that the behaviour of this method is dependant on
the implementation of the JVM and may not have any effect with your Java
runtime.
Toby.
Raj Bhaskar wrote:
>
> Hi all,
> I remember someone recently suggesting in response to a question
> that the questioner should manually call the Java garbage collector.
> Well, I think that I might need to do this for a project that I'm doing and
> was just wondering *how* you call the garbage collector manually in
> Java?
>
-----------------------------------------------------------------------------
To unsubscribe from this mailing list, send email to majordomo@enhydra.org
with the text "unsubscribe instantdb" in the body of the email.
If you have other questions regarding this mailing list, send email to
the list admin at owner-instantdb@enhydra.org.
|