Thursday, June 6, 2013

ImageJ out of memory fix

Solution 1:

run from console:

./jre/bin/java -Xmx512m -jar ij.jar 

for getting 512MB (for example). (Source: http://imagejdocu.tudor.lu/doku.php?id=faq:technical:how_do_i_increase_the_memory_in_imagej)

Solution 2:

 edit the

/usr/bin/imagej

run script OR find it with

$ whereis imagej

then modify the line

declare -i default_mem=768

with the desired memory in MB. Notice limitations depending on total RAM and 32/64 bit system. (Source: http://ubuntuforums.org/archive/index.php/t-1236001.html)

No comments:

Post a Comment