Re: changing memory allocation using Fiji/ImageJ
Posted by
Nathaniel Ryckman on
Jun 07, 2011; 4:52pm
URL: http://imagej.273.s1.nabble.com/changing-memory-allocation-using-Fiji-ImageJ-tp3684178p3684188.html
Here is where it is getting the information from:
"public long getMemorySetting() {
if (IJ.getApplet()!=null) return 0L;
long max = 0L;
if (IJ.isMacOSX()) {
if (IJ.is64Bit())
max = getMemorySetting("ImageJ64.app/Contents/Info.plist");
if (max==0L) {
max = getMemorySetting("ImageJ.app/Contents/Info.plist");
}
} else
max = getMemorySetting("ImageJ.cfg");
return max;
}
"
So...from skimming the code, it looks like it gets the number from ImageJ.cfg. The numbers are probably different because the number in ImageJ.cfg is in bytes, not megabytes. Have you tried changing the value in the .cfg file (make sure it's the right one just in case you accidentally have a copy)? Also, you have to restart imageJ for the change to take effect and you can't be running imageJ as an applet or by command line.
spt wrote
Hi,
I am running ImageJ under the Fiji application on a PC running windows XP. When I try to change the memory allocation under the options menu there is no effect on the amount of memory allocated after restarting the program. This occurs regardless of whether I try to increase or decrease it. I noticed that the image j cfg file was unchanged by using this command, but also noted that the amount of memory used was different from what was denoted in the cfg file-- so the memory allocation must come from somewhere else, but I don't know where to look!
Thanks for any insight.
Susan Travers