Increase Java Heap Space for a appliction created by Matlab Application Compiler
9 views (last 30 days)
Show older comments
Philipp Schäfer on 15 Nov 2018
Answered: Yair Altman on 27 Oct 2022
for a compiled application I get the following error message during reading big xml-files: java.lang.OutOfMemoryError
I already read how to increase the java heap space in Matlab in the settings. This helps by executing the code directly in Matlab but not for the executable.
Is there a way to increase the java heap space also for the executable (performed with Matlab Runtime 9.2)?
Thanks a lot!
Ayswaria Vijayamohan on 21 Oct 2020
Edited: Ayswaria Vijayamohan on 21 Oct 2020
facing the same issue.
Made java package with compiler SDK, running the jar in Java. Getting same error
Yair Altman on 27 Oct 2022
You can add a java.opts file to the "Files installed for your end users" section, at the bottom of the deploy-tool window, next to where the exe filename is displayed. In the java.opts file you can place JVM startup parameters, including the -Xmx parameter, for example -Xmx512M or -Xmx2G
Find more on Java Package Integration in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!