Login  Register

Out of available memory? Help!

Posted by Jonathan Thomas-2 on Nov 01, 2006; 10:23pm
URL: http://imagej.273.s1.nabble.com/Out-of-available-memory-Help-tp3701098.html

(cliffs at bottom)

I am currently trying to use ImageJ to do image segmentation on some ~11MB
RGB images.  The images load fine into ImageJ, but if I attempt to do any
filtering on them ImageJ throws this error:

<Out of memory>
<All available memory (63MB) has been>
<used. Instructions for making more>
<available can be found in the "Memory" >
<sections of the installation notes at>
<http://rsb.info.nih.gov/ij/docs/install/>
>>>>>>>>>>>>>>>>>>>>>>>>>>>

I then poked through the options and raised the memory alotted to 500MB,
closed ImageJ and reopened it attempted the same operation and got an
identical error.  Even mentioning 63MB.  Note that the default was not 63
MB nor was the max memory set anywhere near 63MB after I changed it.


So I came here, and I see people recommending changing the command given
to the executable, so I checked my ImageJ.cfg and it reads:

.
C:\Program Files\Java\j2re1.4.2_03\bin\javaw.exe
-Xmx500m -cp ij.jar ij.ImageJ

In a previous thread someone mentioned a similar problem and modifying
this line fixed the problem but I believe that java should have plenty of
memory the way I have it configured.

So that's my problem, I'd appreciate any help you guys can give me.

If you have read this far here is some more information that may be
helpful:

2.99Ghz Pentium D
2GB Ram

ImageJ 1.36b
Java 1.5.0_06
About ImageJ displays 55MB of 500MB (11%) while the error message is still
in the log.

The java is on this machine, while the ImageJ is being run from a network
drive.  The same error arrizes when I run ImageJ as an applet from the NIH
page.

I have contacted the sys admin and he assures me that there is no
constraint put on memory used by a user, with the exception of the
physical memory on the machine and what is being used by other software.

Software running in the background or not has no effect on the error
message.

I have replicated this error on 2 machines, each using their own local
java but the same ImageJ off the same network drive.  I have also
replicated it running ImageJ as an applet on both machines.

Curiously when I look at the size of the image in windows it is listed as
11MB, but ImageJ claims it's 27MB.  (perhaps this is extra space for a
buffer?)  One image is 2915x2456 pixel tiff.  The others are similar.  All
tiffs, all RGB, all produce the same error.

If you have made it this far I truly commend you.  Thank you for the
attention and here's a quote for your efforts.

"'That is indisputable,' was the answer, 'but in this country it is a good
thing to kill an admiral from time to time to encourage the others.'"
-Voltaire (François-Marie Arouet), Candide

Thank you for any help you can give me.
-Stumped in StonyBrook





finally cliffnotes:
1. ImageJ throws an out of memory error when I try to analyze some large
tiff images
2. The machine has plenty of memory and so does java.
3. Solutions to similar problems from this listserv do not help.
4. Recent software, reproducible.
5. HELP!
6. quote for your efforts, thanks!