org.hibernate.engine.internal.EntityEntryContext $ ManagedEntityImpl中的内存泄漏

时间:2015-09-18 04:13:24

标签: java spring hibernate memory-leaks

在org.hibernate.engine.internal.EntityEntryContext中获取内存泄漏$ ManagedEntityImpl

At the time the leak was detected, 19323 objects existed of class

org.hibernate.engine.internal.EntityEntryContext $ ManagedEntityImpl

这些对象是在

创建的

org.hibernate.engine.internal.EntityEntryContext.addEntityEntry(java.lang.Object,org.hibernate.engine.spi.EntityEntry):96

并被关押 在java.util.IdentityHashMap的表中

in nonEnhancedEntityXref of org.hibernate.engine.internal.EntityEntryContext
    in entityEntryContext of org.hibernate.engine.internal.StatefulPersistenceContext
      in persistenceContext of org.hibernate.internal.SessionImpl
        in session of org.springframework.orm.hibernate4.SessionHolder
          in value of java.util.HashMap$Entry
            in table of java.util.HashMap
              in value of java.lang.ThreadLocal$ThreadLocalMap$Entry
                in table of java.lang.ThreadLocal$ThreadLocalMap
                  in threadLocals of org.apache.tomcat.util.threads.TaskThread

如果我们迁移到hibernate-core-4.3.7.Final.jar,请建议是否可以解决此问题。 目前我们正在使用hibernate-core-4.2.0.Final.jar。 基于https://github.com/hibernate/hibernate-orm/pull/767

0 个答案:

没有答案