Local database reading edition
Reference Objects and Garbage Collection
Reconstructed from database records, not a captured original forum layout. Dates and display names are retained as recorded; timezone and real-world identity are not inferred. Historical advice, contact details and offers are not current. Original markup is shown as inert text.
Opening post
administrator · 2001-02-12 18:25:28
Performance is one of the major architectural goal many organization, So I will recommend to use Soft Reference when, you don't know in advance whether you are going to reuse the object, but you might reuse it. In this scenario if you keep reference to the object, thinking you might reuse it, could possible that your application will never use it again. in that case you will cause a memory leak. Soft Reference helps the garbage collector to claim if memory in heap is going low, GC claims the oldest one first. The Rule is "Before throwing the OutOfMemoryException, GC has to clean all the Soft Reference ". This way programmers headache is less and at the same time we can achieve an optimization in this regard.
go thru the following link to explore more detail.
http://developer.java.sun.com/developer/technicalArticles/ALT/RefObj/
Ahimanikya Satapathy
http://www.ammu.org/kuku
Source notes
MyCommunity/nandighosha.org.zip!/forum/tools/snitz_forums_2000.mdb
Table: FORUM_TOPICS + FORUM_REPLY · record IDs: 13, 1