Posted by
Franklin Shaffer-2 on
Dec 11, 2009; 2:12pm
URL: http://imagej.273.s1.nabble.com/increasing-memory-allocation-via-Java-code-tp3689982p3689983.html
I am doing particle recognition and tracking of images on high speed videos. I break the hs video up into images, then load the image sequence into ImageJ.
I put 64 GB of RAM in a very fast PC (HP Z800). I try to load a sequence of 50,000 image files, but I get a memory error after it loads about 40,000. The total combined size of all of the 50,000 images is 20 GB. But I have 64 GB of RAM, and I have the memory limit set in ImageJ as 50 GB.
So if I tell ImageJ to use 50 GB of RAM, why is it giving memory errors when I try to load 20 GB of images ?
ImageJ is an excellent code for cell/particle analysis, so I want to continue using it.
Thank you all for building ImageJ!
Frank Shaffer
Research Engineer, National Energy Technology Laboratory, US.
[hidden email]
>>> "Roy Wollman" <
[hidden email]> 10/30/2009 9:47 PM >>>
Hi All,
I'm trying to import few of the ImageJ classes to use within matlab.
Matlab has great java support which basically means that I can create
objects on the command line (e.g. stk=imp.createEmptyStack();).
However, the maximal memory allocation is too low. Since I'm running
on a OS-X with 64-bit and lots of memory I want to increase the
maximal memory allocation. I already don't so in the standalone
ImageJ64 application and it works great.
Here is the matlab code I'm using:
javaaddpath /Applications/ImageJ/ImageJ64.app/Contents/Resources/Java/ij.jar
import ij.*;
mem=ij.plugin.Memory;
mem.run('');
Than I get the menu in which I change the total memory but.... I get
the following message:
ImageJ is unable to change the memory limit. For
more information, refer to the installation notes at
http://rsb.info.nih.gov/ij/docs/install/
The ImageJ application (ImageJ.app) was not found.
Current limit: 189MB
Since the java objects are created within matlab its not my job to
worry about memory management but matlab's problem. Is there another
way to increase the limit or just disable the memory limit altogether?
Thanks,
Roy