MATLAB: Are parts of the HTML report created with Report Generator missing or blank

conversiondocumentfailedfigureslargeMATLABmemoryreport

When creating large documents with large numbers of figures, resulting HTML documents may have blank pages or fail to generate certain pages or sections entirely. This behavior is accompanied with the default message:
Document conversion failed.
Setting the Message List window of the report generator to:
6) All Messages
Reveals the more complete message:
Document conversion failed
Error using ==> rpt_xml.db_output.convertReport
Java exception occurred:
java.lang.OutOfMemoryError

Best Answer

This enhancement has been incorporated in Release 14 Service Pack 3 (R14SP3). For previous product releases, read below for any possible workarounds:
By default, MATLAB uses a default heap space setting of 64 megabytes for the Java Virtual Machine (VM). In cases where large documents are being converted using the Report Generator, the Java VM heap space may need to be increased. Directions for increasing the Java VM heap space are provided in the following solution:
As an example, creating a java.opts file in the MATLAB startup directory with the line:
-Xmx128m
provides 128 megabytes of Java VM heap space in MATLAB. To avoid issues with virtual memory, never set the -Xmx option to more than 66% of the physical RAM available.