Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Design Forum (formerly called the Flexible Java Forum) made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
First of all, you want to kick off your application with max memory wouldn't you? Are you by any chance restricting your application to 1MB right from the start? You might want to hold your objects as WeakReferences instead of strong references. Doing so will prompt the GC to start reclaiming objects. System.gc() as Bill Venners pointed out somewhere on this forum is a "suggestion" and not a "command". The one way to interact with the GC at runtime would be to declare your objects as Weakreferences/Softreferences. Check out java.lang.ref. under JDK1.2
Replies: |
Sponsored Links
|