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: 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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira