Plugin memory question
Posted by Du, Guanghua on May 06, 2009; 3:08pm
URL: http://imagej.273.s1.nabble.com/Plugin-memory-question-tp3692661.html
Dear list,
I am developing a plugin in ImageJ, when I run this Plugin, the memory
goes to very high (~GB). I have used gabage collection in the java code
(even repeat several times), I still cannot resolve this problem. The
memory use keeps high even the plugin finishes. What interesting is when
I right click on the memory monitor window of ImageJ, the memory goes to
low immediately, within several clicks, it goes to normal level (several
MB). (I have set a memory of 1.4GB for ImageJ.)
when I do 3D analyzing on a small stack-image (8bit,50x50x35), it can
run to the end successfully. if it's a big image(8bit, 255x255x35), then
I got the exception:
" java.lang.OutOfMemoryError: Java heap space"
I would appreciate any suggestions and help.
best wishes!
**************************************
Guanghua Du,