Register / Login
Win a copy of
The Way of the Web Tester: A Beginner's Guide to Automating Tests
this week in the
Performance Of Garbage Collection
friki data migration
posted 9 months ago
How can you help the garbage collector?
By explicitely nulling references? By explicitely calling System.gc()? By reusing objects instead of instantiating new ones?
Interestingly, with modern JVMs (starting with
1.2), the answer to all the above questions is "no" in general - these "solutions" are more likely to do harm than to really help.
see "Java theory and practice: Garbage collection and performance":
Performance Tuning of Websites written in JSP/HTML
Explicity making objects eligible for gc
Easy stringbuffer questions