我正在分析一个堆转储,在该堆中有50%的活动集。这是由于为保存所有
JDBC4Connection
它是内部属性hashmap。这是一个运行了几天的应用程序的堆转储。
看起来它保存了数千个JDBC连接对象和配置。
但是,我正在使用
org.springframework.data.jpa.repository.JpaSpecificationExecutor.findAll
,而不直接查询数据库。代码:
Specification spec = getUserInfoListSurfacing(userInfo);
JPAImpl.findAll(spec, new PageRequest(0, 1, Sort.Direction.DESC, "reportedDate")).getContent()
这是这个连接池的bean定义
value="${userdb.hibernate.c3p0.unreturnedConnectionTimeout}"/>
我还没有找到我正在使用的休眠版本内存泄漏的确认报告。
我在用
spring-data-jpa
版本2.0.6.最终版本
hibernate-core
版本4.3.5.最终版本
hibernate-jpa-2.1-api
版本1.0.2.最终版本