Login  Register

Antwort: Re: out of memory: multiple images

Posted by Joachim Wesner on Jul 03, 2006; 12:13pm
URL: http://imagej.273.s1.nabble.com/out-of-memory-multiple-images-tp3702323p3702327.html

>And this might be the problem. If you have a tight loop the garbage
>collector may never be able to run. Try to force a garbage collection at
>the beginning of the loop using IJ.freeMemory().

Really? I would say then it is a silly implementation! I the app runs out
of memory,
the first thing the JVM should try is to call the garbage collector
to see if it can get some memory back before it throws an exception.
I thought, trying to run the GC earlier only makes sense to avoid any
delays to happen
when you do not want be interrupted if possible at all!


JW


______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________