Joined: Thu Jul 03, 2008 6:05 am Posts: 2
|
Hello,
I use :
jboss 4.2
Hibernate EntityManager 3.2.1.GA
Hibernate Annotations 3.2.1.GA
Hibernate 3.2.3
I have defined many persistence unit (nearly 40) in my persistence.xml file.
Each persistence unit is linked to a Datasource defined in db-ds.xml file.
When jboss has successfully started I see that it uses 1 Gb of memory.
No user has connected yet !
After investigation (heap analysis) I found that memory is used by Hibernate.
Address : 0xb6a5530
Object : org/hibernate/ejb/EntityManagerFactoryImpl
Number of children : 2
Owner address: 0xc458d70
Owner object: org/jboss/ejb3/entity/InjectedEntityManagerFactory
Size : 9
Total size : 11 910 296
How can I can i reduce memory consumption ?
|
|