[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2456) Memory leak in BasicLazyInitializer

Julien Kirch (JIRA) noreply at atlassian.com
Thu Mar 1 04:52:31 EST 2007


Memory leak in BasicLazyInitializer
-----------------------------------

         Key: HHH-2456
         URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2456
     Project: Hibernate3
        Type: Bug

  Components: core  
    Versions: 3.2.2    
 Environment: Hibernate 3.2.2, cglib 2.1.3, jdk 1.4.2, weblogic 8.1
    Reporter: Julien Kirch
    Priority: Blocker
 Attachments: graph_2.png

While profiling our application because of OutOfMemory, I noticed a big memory leak that seems to come from hibernate:

After some calls a CGLIBLazyInitializer containing a a SessionImpl is referenced in a threadlocal so it is never GCed even if the session is closed and the calling flow is over

Forum thread http://forum.hibernate.org/viewtopic.php?t=968853 seems to deal with the same issue

I attached a picture of the profiling information

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira




More information about the hibernate-issues mailing list