-->
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.  [ 4 posts ] 
Author Message
 Post subject: Hibernate JBOSS 4.05 Consuming all memory
PostPosted: Sat Aug 11, 2007 9:19 pm 
Beginner
Beginner

Joined: Thu Jan 11, 2007 7:19 pm
Posts: 20
Location: Argentina, Buenos Aires
Hibernate version:
3.2 in Jboss 4.0.5

Name and version of the database you are using:
Posgresql 8.2

Hibernate begins consuming memory an the JVM is not able
to deallocate it.

I've tried MaxPermSize, not using cglib optimizations, all
my asociations are lazy, etc.....
and always the same result.

I could lower memory consuption using SqlNativeQueries for
very easy queries, but it doesn't make sense to use it
for more elaborated ones.

The rate is really incredible, lets say 1Mb per 100 sql, each of them
fetchs between 1 to 10 rows of no more than 10 columns.

Any ideas on how to configure hibernate to correct this problem.
Thanks in advance

Tonio.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 11, 2007 9:44 pm 
Beginner
Beginner

Joined: Thu Jan 11, 2007 7:19 pm
Posts: 20
Location: Argentina, Buenos Aires
Some extra data I could find:

When all my sqls belong to one EJB Method all seems to work ok, but
when a EJB Method calls another EJB Method in the same ear or
an EJB Method in another ear, the consuming of memory goes crazy.


Really don't know if this can help, I'm beginning o think that the
problem is with JBOSS and not Hibernate

Thanks again
tonio


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 11, 2007 10:09 pm 
Beginner
Beginner

Joined: Thu Jan 11, 2007 7:19 pm
Posts: 20
Location: Argentina, Buenos Aires
Sorry again I forgot to mention I'm using pure JPA, that say all my code
only uses EntityManager/Annotations not Session/HBM.

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Tue Aug 14, 2007 3:22 pm 
Beginner
Beginner

Joined: Thu Jan 11, 2007 7:19 pm
Posts: 20
Location: Argentina, Buenos Aires
Well my problem was solved.

I moved to JBoss 4.2.1, and the same code just work wonderful.

Thanks to anybody whom just thought about answering my e-mail.
tonio


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

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.