Posted by
ctrueden on
URL: http://imagej.273.s1.nabble.com/Flush-clear-memory-in-ImageJ-Fiji-tp3682491p3682501.html
Hi Matthias,
Is there a way (e.g. a macro command) to clear out unused, but still
> allocated memory in ImageJ (I'm using Fiji under Win7 64bit)?
>
Clicking on the ImageJ status bar triggers a garbage collection, similar to
the command you mention. You can try clicking 2 or 3 times, and see whether
the reported memory usage drops.
When I open a large file and then close it, the memory used for that large
> file is sometimes not cleared. When I then try to open another large file, I
> get a warning of insufficient memory.
>
There are several reasons why this can happen. Sometimes the garbage
collector can't keep up with new memory allocation. But often the issue is a
bug (specifically, a memory leak) in the program.
My problem usually occurs when opening large files using the LOCI tools.
>
We would like to fix any problems in the Bio-Formats code, but would need
instructions on how to duplicate the issue. How much memory are you
allocating to ImageJ? In this case, it might be easier to replicate the
issue by reducing ImageJ's available maximum memory. Which OS are you
running? Are you using the "Virtual stack" option? Do you have a sample
dataset you could send that exhibits the problem?
Regards,
Curtis
On Wed, Oct 19, 2011 at 4:31 AM, mjlm <
[hidden email]> wrote:
> Hi there,
> Is there a way (e.g. a macro command) to clear out unused, but still
> allocated memory in ImageJ (I'm using Fiji under Win7 64bit)? When I open a
> large file and then close it, the memory used for that large file is
> sometimes not cleared. When I then try to open another large file, I get a
> warning of insufficient memory.
>
> I've tried to trigger Java garbage collection with
> call("java.lang.System.gc"), but it didn't have any effect. My problem
> usually occurs when opening large files using the LOCI tools.
>
> Thanks,
> Matthias
>
> --
> View this message in context:
>
http://imagej.588099.n2.nabble.com/Flush-clear-memory-in-ImageJ-Fiji-tp6907896p6907896.html> Sent from the ImageJ mailing list archive at Nabble.com.
>