MATLAB Answers

What is an optimum value for Java Heap Memory?

62 ビュー (過去 30 日間)
ES
ES 2019 年 8 月 9 日
回答済み: Divya Gaddipati 2019 年 8 月 12 日
Hello all,
Can you please suggest the optimum value for Java Heap Memory Preference in MATLAB?
I use MATLAB R2016B (64 bit).
My day to day activities include 1) using a lot of Simulink, 2)writing MATLAB Scripts and 3)debugging scripts.
Thanks

  0 件のコメント

サインインしてコメントする。

採用された回答

Divya Gaddipati
Divya Gaddipati 2019 年 8 月 12 日
There is no optimal value for Java heap space, as the best allocation depends on what you are doing. The default heap size is sufficient in most cases.
Although, creating a larger Java heap gives more space to some types of objects (especially graphics objects or Simulink), it reduces the amount of memory available on your system for other tasks (like most MATLAB computations, and storing variables). If you are using a lot of Simulink and not performing very many calculations, then you will benefit from more Java heap space. If you are executing numerically intensive scripts with lots of large variables and do little or no plotting, then you may benefit from less Java heap space.

  0 件のコメント

サインインしてコメントする。

その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by