Help with Java heap space on macOS Big Sur

4 views (last 30 days)
DM
DM on 24 Aug 2021
Answered: Sivani Pentapati on 30 Aug 2021
Hi,
I have a persistant and very annoying problem with matlab. I am keep getting the following error and I can't work with MATLAB2017b anymore. Should I unistall and install again Matlab? Is there any way to fix that?
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space
Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java heap space

Answers (1)

Sivani Pentapati
Sivani Pentapati on 30 Aug 2021
You are facing this error because of insufficient java heap space. The configuration of the heap space can be edited under the Preferences tab of the toolstrip. Please refer to this link for more information.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!