Main Content
Java Memory Usage
MATLAB® Report Generator™ uses Java heap memory to generate PDF documents. The default Java heap size that MATLAB allocates may not be enough to convert large PDF documents. The error that occurs if your report conversion runs out of Java heap memory is:
Document conversion failed. Java exception occurred: java.lang.OutOfMemoryError
To generate your PDF document, increase the Java heap space to the maximum amount:
Click Preferences on the MATLAB toolbar.
Expand General
To open the MATLAB General Java Heap memory Preferences panel, click Java Heap Memory
Move the slider all the way to the right to set the Java Heap Size to the maximum value.
To enable the new Java heap size, restart MATLAB.