Wednesday, June 04, 2008 Bharath Ganesh a very interesting leak, were WeakHashmap doesn't seem to release entries that don't seem to be referenced anymore. Actually when interned String literals are used the entries stay in the WeakHashmap even after all hard references seem to be removed. I say "seemed to be removed" because there actually is still a reference from the Class, that is still loaded, to the interned String literal. Unfortunately using a heap dump do find this out, does not work, because this implicit reference is (currently) not written to the heap dump file.
Read full article from Java Performance blog: An interesting leak when using WeakHashmaps
No comments:
Post a Comment