java.lang.​OutOfMemor​yError について

MATLAB R2016b (9.1.0.441655) 64-bit (glnxa64) is used to predict survey information.
About three days ago, the following error occurred, and it examined in various ways and it understood to the place where Java heap area was short.
ExceptionObject: [1×1 java.lang.OutOfMemoryError] identifier: 'MATLAB:Java:GenericException' message: 'Java exception occurred: ...' cause: {} stack: [3×1 struct]
I checked the setting method on the MATLAB side, but I understood how to set it from the management screen by GUI, but because of AWS the GUI can not be used and I do not know how to set it.
It is saved if someone can tell me how to set it from the command line.
In addition, I think whether the memory use situation of AWS has no problem. KiB Mem: 60614968 total, 56340112 free, 1448516 used
Thank you.

 채택된 답변

Kojiro Saito
Kojiro Saito 2018년 3월 14일

3 개 추천

You can change Java heap size by editing $prefdir/matlab.prf file.
By default in Linux MATLAB R2016b, $prefdir is would be /home/USER/.matlab/R2016b. If you want to increase Java heap size to 4,000MB, try the following.
vi /home/USER/.matlab/R2016b/matlab.prf
and add ( or change if JavaMemHeapMax is already existing)
JavaMemHeapMax=I4000
Then restart MATLAB, the Java heap size will be changed.

댓글 수: 1

turinavi
turinavi 2018년 3월 14일
Thank you very much. I will check it.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 環境と設定에 대해 자세히 알아보기

제품

질문:

2018년 3월 14일

댓글:

2018년 3월 14일

Community Treasure Hunt

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

Start Hunting!