Increase Java Heap Space for a appliction created by Matlab Application Compiler

조회 수: 9 (최근 30일)
Dear all,
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!
Philipp
  댓글 수: 1
Ayswaria Vijayamohan
Ayswaria Vijayamohan 2020년 10월 21일
편집: Ayswaria Vijayamohan 2020년 10월 21일
facing the same issue.
Made java package with compiler SDK, running the jar in Java. Getting same error
MCR9.7 used

댓글을 달려면 로그인하십시오.

답변 (1개)

Yair Altman
Yair Altman 2022년 10월 27일
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
Additional information:

카테고리

Help CenterFile Exchange에서 Java Package Integration에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by