Link to home
Start Free TrialLog in
Avatar of Matlock
Matlock

asked on

Garbage Collection

Apart from pointing Strings and Images to null, when done with and calls to System.gc(),
Are there any tips anyone can give to improve how well the memory model performs for Java applications.
Avatar of imladris
imladris
Flag of Canada image

Nope, there isn't anything to be done beyond that. And I have had a large production program running for the last number of years, and there is no apparent need for anything more either.

If you are having a specific problem, perhaps that could be addressed.
ASKER CERTIFIED SOLUTION
Avatar of Jim Cakalic
Jim Cakalic
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jp_grenier
jp_grenier

Here's a tip, don't call directly System.gc().

Let the garbage collector do his work when he feals like doing it.

Garbaging nulled objects is pretty fast, for example, garbaging 32m of nulled data took me 0.01 sec under jdk131 with HotSpot Server.

Avatar of Matlock

ASKER

The bit about strings is something I can definitely look at following Imladris' comment though I'm going to open a new question specific to ONE remaining problem.