-->
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.  [ 5 posts ] 
Author Message
 Post subject: Out Of Memory While Searching
PostPosted: Mon Apr 03, 2006 5:42 am 
Newbie

Joined: Tue Mar 28, 2006 7:53 am
Posts: 3
Hello All,

In Our bussiness application, we are using hibernate.While searching I am getting OutOfMemoryErrors.

The criteria of searching is as

1. We enter the search criteria.
2. Objects from the table are soughted out. Each object is retrieved as a
Id and is stored as collections.

Memory consumption increases with every search.

I closed the session factory, but even with closing, flushing or clearing every session and sessionfactory that is available, it just did not work.


Please help me fro the same.
I will appreciate any help. I have tried hard but didnt got to any possible cause.

Please help me.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 03, 2006 9:28 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
Closing the session and sessionfactory should delete most
of the memory hibernate uses I think.
So this leaves your application code as the leak.
Did you profile your application ?

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 04, 2006 1:49 am 
Newbie

Joined: Tue Mar 28, 2006 7:53 am
Posts: 3
yes, i am trying to profile it using Jprifiler. Is there any specific part which should be looked for during profiling?
And also i am using heap size of 128mb of 512mb of RAM.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 04, 2006 3:13 am 
Pro
Pro

Joined: Mon Jan 24, 2005 5:39 am
Posts: 216
Location: Germany
You should look where the memory is hold.
What method allocates it ?
What classes and object are allocated ?

128 MB is not that much, most of our applications
need 256 MB at least.

_________________
dont forget to rate !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 05, 2006 12:15 am 
Newbie

Joined: Tue Mar 28, 2006 7:53 am
Posts: 3
I profiled the application. There is one method executeQuery which is comsuming most of the memory.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.