-->
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: Release Memory Resources
PostPosted: Wed Aug 07, 2013 12:18 pm 
Newbie

Joined: Wed Aug 07, 2013 11:54 am
Posts: 5
Hi,

I am working with images serialized in the database. What I want is to display a collection of images in my application. Up to this point no problem. The problem arises after examining 3 or 4 collections, that I get an OutOfMemory Error (Java Heap Space). If I don't check the collections the error doesn't show up. Where is the problem? In my pojo's I already load lazily the serial representation of images, and inside my application I make a call to gc() in order to cleanup resources when the window containing the slide show for a collection is hidden.

The image serial representation is stored in a field fetched lazily. The holding instance is stored in an ArrayList. The curious thing is that if I don't call the getter methods of the serial representations but only want to know the size() of the collection, the error still arises although the field is lazily loaded. How is that possible?

Any help is greatly appreciated.

Carlos.


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.