[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6137) Multiple sql queries String with same content in several EntityLoader instances

Nicolas Brasseur (JIRA) noreply at atlassian.com
Tue Apr 19 09:47:59 EDT 2011


Multiple sql queries String with same content in several EntityLoader instances
-------------------------------------------------------------------------------

                 Key: HHH-6137
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6137
             Project: Hibernate Core
          Issue Type: Bug
          Components: core
         Environment: Hibernate 3.5.6, Postgresql 8.4
            Reporter: Nicolas Brasseur
            Priority: Minor


Digging in heap dumps to solve a memory leak problem I found that some memory was wasted by multiple instances of String holding the exact same sql query in the EntityLoader class (the 'sql' instance variable). As long as those query strings may be big (depending on the number of join they contain) it would be nice to .intern() the sql queries before storing them in the EntityLoader.

Rem: this was not the cause of the memory leak I was looking for.

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