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.  [ 3 posts ] 
Author Message
 Post subject: java.lang.outofmemory exception?
PostPosted: Mon Jun 06, 2005 12:55 am 
Beginner
Beginner

Joined: Wed Jul 21, 2004 7:48 am
Posts: 21
Hibernate version: Hibernate 2.1

Name and version of the database you are using: HSQL db

Hi all,
I am using Hibernate in my application. In my application a large collection, around 50000 records will be coming when I say session.find(). I am getting java.lang.outofmemoryexception. So I am having a doubt whether a large number of objects in the session cache is causing the problem or what?
So need ur comments on this.

Thanks in advance
Mithun K.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 2:45 am 
Expert
Expert

Joined: Thu May 26, 2005 9:19 am
Posts: 262
Location: Oak Creek, WI
Hi

Read this

http://blog.hibernate.org/cgi-bin/blosx ... batch.html

Use session.clear()

_________________
RamnathN
Senior Software Engineer
http://www.linkedin.com/in/ramnathn
Don't forget to rate.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jun 06, 2005 3:00 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
Don't read this, read the reference documentation. It includes a chapter about batch processing.


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