out of memory ? plenty of RAM

Posted by Heinrich Bürgers on
URL: http://imagej.273.s1.nabble.com/out-of-memory-plenty-of-RAM-tp3703141.html

Hi,
I am using debian, actual ImageJ, java 1.4.2 on a 2-way ia64.

my memory according to "free" (nothing special running):
    total       used       free     shared    buffers    cached
Mem:  9350656    1790016    7560640          0      83040     1421616
        -/+ buffers/cache:     285360    9065296
        Swap:      2060512          0    2060512

my "run" file looks like:
        /usr/j2sdk1.4.2/jre/bin/java -Xmx8192m -cp ij.jar ij.ImageJ

I want to process a composite (486400x19200 8bit grey) image with median
filter 5x5

I get following message:

>>>>>>>>>>>>>>>>>>>>>>>>>>>
<Out of memory>
<All available memory (6459MB) has been>
...
>>>>>>>>>>>>>>>>>>>>>>>>>>>

according to vmstat there's nearly 2.9 GB total RAM left!
where's the restriction?

thanks for your help in advance!
Heinrich