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.
Are there any tips anyone can give to improve how well the memory model performs for Java applications.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.
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.
If you are having a specific problem, perhaps that could be addressed.