Re: ImageIO memory issue
- From: Daniel Pitts <newsgroup.spamfilter@xxxxxxxxxxxxxxxxxxx>
- Date: Thu, 08 May 2008 18:14:01 -0700
Erik wrote:
I have a problem with the ImageIO.read(new File(...)); method. When IJust because your java programs memory footprint doesn't decrease doesn't mean that the memory is still "consumed". Java uses garbage collection, which may wait an indeterminate amount of time before "freeing" the memory... Unless you are getting OutOfMemoryErrors, don't worry about your memory footprint.
call this method and it reads an image,
but it is not stored in a BufferedImage (or something else), it still
consumes memory. So when only reading
a image and not storing the results, the image is still kept inside
the memory. Also forcing to garbage collect does
not help. Does anyone knows how to release (flush) the ImageIO memory?
Erik
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
.
- References:
- ImageIO memory issue
- From: Erik
- ImageIO memory issue
- Prev by Date: Re: Initializing Singletons
- Next by Date: Re: Set and .equals() semantics
- Previous by thread: Re: ImageIO memory issue
- Next by thread: Re: ImageIO memory issue
- Index(es):
Relevant Pages
|