-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Memory Consumption with persistence-unit
PostPosted: Wed Aug 06, 2008 10:33 am 
Newbie

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 ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.