[PJUG Javamail] Question about hibernate 3.2.6.ga (memory leak due to CGLIBLazyInitializer objects)
Udayini Pendyala
udayini_pendyala at yahoo.com
Fri Dec 18 15:53:16 EST 2009
Hi,
Hope this is the right forum for this question.
At my company, we are running into a memory leak situation with our product. One of the objects that seems to be getting leaked is the CGLIBLazyInitializer object which is part of Hibernate. I searched online for similar experiences and found that this issue is well known. One of the solutions proposed talked about how this problem is pervasive in concurrent applications and how ThreadLocal Session objects might not release other objects they are holding even after the session is closed. So, the post suggested that we should call the remove() on the ThreadLocal session object.
My question is this:
we are already doing _threadLocalSession.set(null). Is _threadLocalSession.remove() different from this?
Do others have experience that could help us?
Thanks
Udayini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pjug.org/pipermail/javamail/attachments/20091218/e37d5059/attachment.html
More information about the Javamail
mailing list