Page 1 of 1

MATLAB Java heap memory

PostPosted: Thu Jul 12, 2018 2:36 pm
by Kouichi_C_Nakamura
The documentation for Bio-Formats MATLAB toolbox below tells us about how to increase Java heap memory size.
https://docs.openmicroscopy.org/bio-for ... b-dev.html

There is a link to the following page.
How do I increase the heap space for the Java VM in MATLAB 6.0 (R12) and later versions?
https://uk.mathworks.com/matlabcentral/answers/92813

Actually, as one of the comments says, from R2010a onwards, MATLAB's preference has a configuration for Java heap memory.

https://uk.mathworks.com/help/matlab/ma ... ences.html

So the information on Bio-Formats documentation is a bit outdated. I'd like to suggest to add the following in the See also box.

See also: Java Heap Memory Preferences (R2010a onwards) https://uk.mathworks.com/help/matlab/ma ... ences.html

Re: MATLAB Java heap memory

PostPosted: Fri Jul 13, 2018 8:54 am
by sbesson
Hi Kouichi,

thanks for raising our attention to this. Certainly nice to see there is an official MATLAB documentation page and an option allowing to adjust the Java heap size via the UI.

Keeping the reference to the `java.opts` path is probably still valid for the cases where MATLAB is running headless. So updating the see also box as you suggested makes complete sense. The source code for this documentation page is available at https://github.com/ome/bio-formats-docu ... ab-dev.rst. Feel free to open a Pull Request directly else we will card your suggestion for the upcoming milestone.

Best,
Sebastien

Re: MATLAB Java heap memory

PostPosted: Fri Jul 13, 2018 9:29 am
by Kouichi_C_Nakamura