Posted by
ctrueden on
Nov 18, 2015; 3:27am
URL: http://imagej.273.s1.nabble.com/Memory-usage-in-WEKA-segmentation-tp5014961p5014967.html
Hi Ben,
Thanks for the report. All of that behavior is quite bizarre.
> What's the difference between -mx and -Xmx?
Until your post, I would have said "nothing," but it seems there are slight
differences. I am not certain, but I think "-mx" is for backwards
compatibility, whereas "-Xmx" is the currently recommended invocation.
Have you tested with different versions of Java?
*
http://imagej.net/FAQ#How_do_I_launch_ImageJ_with_a_different_version_of_Java.3F64-bit? 32-bit? Java 8 instead of Java 6?
Maybe the problem does not occur when using Java 8 64-bit?
Regards,
Curtis
On Tue, Nov 17, 2015 at 4:25 PM, ben_king <
[hidden email]> wrote:
> Curtis,
>
> Running from the console didn't fix it but it did something. Here's what I
> have tried:
>
> 1. Ran from console with -mx*anything* flag, ImageJ loads with 494MB
> available memory and gives out of memory exception when it uses all 494MB
>
> 2. Ran from console with -Xmx*anything* or no flags, ImageJ loads with
> 505MB
> and uses up to 505MB
>
> 3. Put -Xmx256m flag in ImageJ.cfg file then ran ImageJ (either from
> console
> with no flags or by clicking icon), ImageJ loads and says 256MB available
> under Help->About ImageJ, but still uses up to 505MB (200%)
>
> 4. Put -Xmx1g flag in ImageJ.cfg file then ran ImageJ (either from console
> with no flags or by clicking icon), ImageJ loads and says 1024MB available
> under Help->About ImageJ, but only uses up to 505MB (50%)
>
> Tried 3 and 4 with -mx* instead of -Xmx* and the result was the same,
> except
> IJ used 495MB before crashing.
>
> What's the difference between -mx and -Xmx?
>
>
>
> --
> View this message in context:
>
http://imagej.1557.x6.nabble.com/Memory-usage-in-WEKA-segmentation-tp5014961p5014965.html> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html