How do I resolve "Java.lang​.OutOfMemo​ryError: Metaspace" errors?

8 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2022 年 9 月 23 日
回答済み: MathWorks Support Team 2022 年 9 月 23 日
When I try do something in MATLAB, I get the following error:
java.lang.OutOfMemoryError: Metaspace
How do I resolve this?
 

採用された回答

MathWorks Support Team
MathWorks Support Team 2022 年 9 月 23 日
This error can be caused by several different things, but indicates that the amount of native memory allocated for Java class metadata is exhausted. This probably means that MATLAB has ran out of memory and can be caused by
  • Not having enough RAM to perform the actions desired.
  • The amount of RAM Java can be used is restricted in MATLAB
  • Something outside of MATLAB is restricting the amount of RAM MATLAB can use
To adjust Java Heap Memory Preferences inside of MATLAB, see the link below:
Java Heap Memory Preferences

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangePerformance and Memory についてさらに検索

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by