[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-4317) Memory leak in EnumType class.

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Sep 23 12:45:36 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4317?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steve Ebersole closed HHH-4317.
-------------------------------

    Resolution: Fixed

> Memory leak in EnumType class.
> ------------------------------
>
>                 Key: HHH-4317
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4317
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: annotations
>            Reporter: Paweł Kępka
>            Assignee: Strong Liu
>            Priority: Critical
>             Fix For: 3.5.0-CR-1
>
>         Attachments: EnumType.java, EnumType.java.patch, enumtypeleak.war
>
>
> Holding enum values in static enumValues map in EnumType class causes memory leaks on application server where hibernate is loaded by application server's common classloader (like for default configuration of JBoss4).
> SoftReference or SessionFactory based caching should be used instead. 

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

       



More information about the hibernate-issues mailing list