-->
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: OutOfMemmory exception
PostPosted: Wed Nov 12, 2003 1:11 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
Hi,

I am making database charge tests to my Hibernate apllication, and i got an OutOfMemory exception.

I am loading the full database to memory, but the memory occupied by the application+data is bigger than the application only, and the difference is much higher than the size of the database in my hard drive.

I am trying to close sessions, and evict objects, but i am not getting anywhere. Do you know that the cause might be?

Thanks in advance,
Joao Rangel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2003 12:54 pm 
Newbie

Joined: Thu Nov 13, 2003 11:31 am
Posts: 15
I'm getting the same error. My take is the session object isnt removing the row objects from its hash. I ran jprobe on this and found the row objects never removed and are all referred to by a hash in SessionImpl.

Waiting for some dev expert help.


Top
 Profile  
 
 Post subject: Session.close()
PostPosted: Thu Nov 13, 2003 2:01 pm 
Regular
Regular

Joined: Wed Sep 10, 2003 7:09 am
Posts: 63
I think I detected the specific problem, but I still don't know how to solve it. Session.close() is not realising any memory. Why?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 13, 2003 2:51 pm 
Newbie

Joined: Thu Nov 13, 2003 11:31 am
Posts: 15
I have the same problem too. I'm using session.evict(obj) to clean up the row object from iternator once I use them. to my dismay, they are still hanging around in memory. the hash table in sessionimpl is holding a reference to them and thus not being cleaned up by the gc.

once the iterator goes thru the whole list, memory will get cleaned up. but when you have a large result set and it fills up your heap you're bye bye


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.