[hibernate-issues] [Hibernate-JIRA] Updated: (HHH-5215) SQLQueryImpl Memory Leak causes OutOfMemoryException

Pamir Erdem (JIRA) noreply at atlassian.com
Tue May 11 15:42:23 EDT 2010


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

Pamir Erdem updated HHH-5215:
-----------------------------

    Attachment: hashCode.jpg

> SQLQueryImpl Memory Leak causes OutOfMemoryException
> ----------------------------------------------------
>
>                 Key: HHH-5215
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5215
>             Project: Hibernate Core
>          Issue Type: Bug
>    Affects Versions: 3.3.2
>         Environment: Sun Solaris 10 Sparc
>            Reporter: Pamir Erdem
>         Attachments: hashCode.jpg, nativequeryspec.jpg, Query.jpg, sameQueryOutGoingRef.jpg
>
>
> In one of our batch operations gets OutOfMemoryExcetion. Working on heap dump, it is found out that, same query cached  more than once.
> In the picture below the query is shown.
> !Query.jpg!
> After we found out that the root cause of the problem is the QueryPlanCache, the batch was executed under eclipse environment to find what was wrong.
> Altough the only qery is the query.jpg the query plan cache was so high that it can be  seen easly from MAT.
> !nativequeryspec.jpg!
> We get the picture below by going outgoing references from MAT.
> !sameQueryOutGoingRef.jpg!
> From debugging view of eclipse, we want to produce the problem step by step to prove the heap dump.
> The first step was looking at the source code where hashCode was calculated.
> !!

-- 
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