"Function MEMORY is not available on this platform."

 채택된 답변

Steven Lord
Steven Lord 2020년 7월 26일

0 개 추천

As stated in the Limitations section on the documentation page for the memory function, this function is only supported on Microsoft Windows systems.

댓글 수: 3

Thank you. Is there any way to know for Linux version?
Not sure if the functionality is identical, but the following call to java will give you a number that matches up with the Java heap memory that is set in preferences:
runtime = javaMethod('getRuntime', 'java.lang.Runtime');
maxMemory = javaMethod('maxMemory', runtime);
If I recall, on Linux you would want to first find your process ID, and then example the /proc file system entry for that process, as that can tell you how much memory the process is using.

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

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Call Java from MATLAB에 대해 자세히 알아보기

태그

질문:

2020년 7월 26일

댓글:

2023년 5월 25일

Community Treasure Hunt

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

Start Hunting!

Translated by