[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3769) Enabling jmx statistics cause OOM

Sid (JIRA) noreply at atlassian.com
Sun Feb 8 21:26:38 EST 2009


Enabling jmx statistics cause OOM
---------------------------------

                 Key: HHH-3769
                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3769
             Project: Hibernate Core
          Issue Type: Bug
    Affects Versions: 3.2.0.ga
            Reporter: Sid


It looks like when org.hibernate.jmx.StatisticsService.statisticsEnabled=true all query strings get logged to org.hibernate.stat.StatisticsImpl.queryStatistics.
There is a clear method in org.hibernate.stat.StatisticsImpl that reset all statistics but i don't see this method being called other than when some one calls org.hibernate.jmx.StatisticsService.clear()
As queryStatistics is a HasMap this will causes OOM.

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