code cache is full and Matlab crashes

(base) fprimeau@vcv076182 maca64 % matlab
CodeCache is full. Compiler has been disabled.
Try increasing the code cache size using -XX:ReservedCodeCacheSize=
zsh: terminated /Applications/MATLAB_R2024b.app/bin/matlab

 Accepted Answer

Walter Roberson
Walter Roberson on 22 Oct 2025
Edited: Walter Roberson on 22 Oct 2025
This appears to be related to Java.
I would recommend checking that you have a correct version of Java installed for your Apple Silicon machine;
Also, if you were to upgrade to R2025a or R2025b, they both reduce the reliance on Java a fair bit.

More Answers (0)

Categories

Products

Release

R2024b

Community Treasure Hunt

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

Start Hunting!