Flush/clear memory in ImageJ/Fiji

Posted by mjlm on
URL: http://imagej.273.s1.nabble.com/Flush-clear-memory-in-ImageJ-Fiji-tp3682491.html

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