How to release memory

Posted by Eddie Iannuccelli on
URL: http://imagej.273.s1.nabble.com/Remove-slices-from-a-virtual-stack-tp3690894p3690895.html

Hello,

my java application use ImageJ (1.41) as a library, I noticed that
memory always grows but never decreases so I made a test directly on
ImageJ. When starting ImageJ, the MS Windows task manager show a memory
occupation of 21 MB, after opening a stack  the memory occupation is
about 76 MB, after the stack is closed, the memory never decreases. The
ImageJ internal memory manager show the same memory retention, the same
issue occurs under Linux.

How can I fix this problem, is it an ImageJ problem or a java memory
management problem ?

Regards

--
******************************************
Eddie Iannuccelli
Laboratoire de génétique cellulaire
INRA - Castanet Tolosan
Tel: 05 61 28 54 44 / Fax: 05 61 28 53 08