Login  Register

Re: what is real max memory limit of ImageJ ?

Posted by Albert Cardona-2 on Dec 21, 2009; 5:13am
URL: http://imagej.273.s1.nabble.com/increasing-memory-allocation-via-Java-code-tp3689982p3689985.html

Cedric,

Try this:

-Xms5000m -Xmx5000m

The above sets a fixed heap of 5Gb that can't be resized.
Apparently, resizing the heap is an operation that can make the JVM to
throw an OutOfMemoryException or worse.

If you drop in -Xingc (for incremental garbage collection) then
suddenly ImageJ behaves very well.

Albert