I am using a MATLAB version that is newer than MATLAB 6.0 (R12).*

How do I increase Java VM heap space?

- Note that the information in this solution is applicable to recent releases such as MATLAB 7.14 (R2012a).

Skip to content# MATLAB: How to increase the heap space for the Java VM in MATLAB 6.0 (R12) and later versions

###### Related Question

6.16.5builderexceptionjajavajava.lang.outofmemoryerrorjava.optsjvmloadMATLABmaxheapsizemcrmemorymoreoccurredoutofmemoryr12.1r13size;used

I am using a MATLAB version that is newer than MATLAB 6.0 (R12).*

How do I increase Java VM heap space?

- Note that the information in this solution is applicable to recent releases such as MATLAB 7.14 (R2012a).

- Change Java Heap Memory Settings Without Starting Matlab
- How to change the Java Virtual Machine (JVM) that MATLAB is using on Windows
- Different Java heap size for 32- and 64-bit versions of the same release
- How to monitor MATLAB’s JVM heap memory usage
- Does the text rotate in the opposite direction after I increased the java heap space memory using the JAVA.OPTS file on a MAC
- How to change the Java Virtual Machine (JVM) that MATLAB is using on macOS
- Does the Polyspace Report Generator terminate with an error
- Does MATLAB run out of Java heap space when the machine changes display settings

## Best Answer