Virtual Memory in Headless Mode

Posted by Greg on
URL: http://imagej.273.s1.nabble.com/Virtual-Memory-in-Headless-Mode-tp5011730.html

Hello,

I am using Fiji on Mac OS 10.10. We have to handle huge image stacks, which can be easily around 20Gb. When I running Fiji in GUI mode, the adjusted memory value (Memory & Threads option) extends far beyond the physical amount of RAM. I know that it gets slower, but at least we can process these big files at once then.

Now when I try to run in headless mode via

ImageJ-macosx --headless open.py

where open.py basically just opens one of the files I get the following output on the console:

>>>>>>>>>>>>>>>>>>>>>>>>>>>
<Out of memory>
<All available memory (16033MB) has been>
<used. To make more available, use the>
<Edit>Options>Memory & Threads command.>
>>>>>>>>>>>>>>>>>>>>>>>>>>>

I checked the Info.plist file in the Fiji.app folder, and there the adjusted value is correct (I set it to 40000), and I can open these big files in GUI mode.
So is it not possible at all to use virtual memory in headless mode or how can I pass that option to Fiji/ImageJ in headless mode ?

Thanks and greets,
Greg