"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 件のコメント

alpedhuez
alpedhuez 2020 年 7 月 26 日
Thank you. Is there any way to know for Linux version?
Geoff May
Geoff May 2023 年 5 月 25 日
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);
Walter Roberson
Walter Roberson 2023 年 5 月 25 日
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 ExchangeCall Java from MATLAB についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by