Login  Register

Re: Memory issue with Plugins, but I guess that's not the whole thing

Posted by dscho on Aug 02, 2013; 4:27pm
URL: http://imagej.273.s1.nabble.com/Memory-issue-with-Plugins-but-I-guess-that-s-not-the-whole-thing-tp5004275p5004294.html

Hi Rainer,

On Fri, 2 Aug 2013, Rainer M. Engel wrote:

> Am 02.08.2013 16:52, schrieb Johannes Schindelin:
> > Hi Rainer,
> >
> > On Fri, 2 Aug 2013, Rainer M. Engel wrote:
> >
> >> - load an Image Sequence as Stack (1,5GB) -> Ram is occupied
> >
> > I *could* imagine that it is an issue related to Virtual Stacks that I
> > completely forgot about... did you check the "as virtual stack" box?
>
> No, I imported all images directly. Wayne informed me about that Java
> does not release the RAM as soon the images are closed but it marks it
> available again to ImageJ.

I usually disclose such information on the list where Google can find it,
and I'll do so now: you can force Java to release the memory by clicking
on the status bar in the main window (you might have to hit it twice).

If you are more technically inclined and want to find out what causes
memory leaks (i.e. stale references that prevent the memory from being
made available again), I recently put a very short description on the Fiji
Wiki how to analyze that efficiently with VisualVM:

        http://fiji.sc/Debugging#Debugging_memory_leaks

> Perhaps I need some more time to offer more precise information and
> provide macros which than may reproduce malicious behaviour.
>
> Maybe I simply made some tests and got nervous about the fact that
> nearly all RAM is gone and I only made a test-run with 1% of the data.
> As long as it runs trough, it's ok..
>
> Thank you very much for your effort.

Hopefully my information was useful. If not, I hope to be able to help you
resolve the problem in the future.

Ciao,
Johannes

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html