Our application is throwing OutOfMemoryException. We use Hibernate 3 with Spring HibernateTemplate for persistence and have the transactions implemented using Spring AOP Pointcuts and HibernateTransactionManager. Analyzing the Heap Dumps show us java.util.LinkedHashMap$Entry taking up a lot of memory which has the following structure
-java.util.LinkedHashMap$Entry -org.hibernate.engine.EntityEntry is taking 506,222 objects which is consuming 70% of memory. -org.hibernate.util.IdentityMap$IdentityKey is taking 506,276 objects
We are not sure if this is an application issue, Hibernate issue or a configuration issue and what could be causing the objects to accumulate in the HashMap.
If any one of you have seen this issue and has any info on the issue, it would be great if you can share it with us.
Thanks, Naveen
|