In order to increase the Java memory for Polyspace, please navigate to the folder
<matlabroot>/polyspace/bin/win64 (for 64-bit installations)
<matlabroot>/polyspace/bin/win32 (for 32-bit installations)
and change the java.opts file in a text editor. By default, its content is -Xmx1024m, so you can change the Java memory for example to 2048 MB by entering -Xmx2048m.
Note that <matlabroot> is your MATLAB installation folder, which you can obtain by entering
at the MATLAB Command Prompt.
Polyspace R2013a and earlier:
In earlier versions of Polyspace, java.opts can be found in:
C:\PolySpace\PolySpace_Common\ReportGenerator\bin\x86_64-mingw32
and/or
C:\PolySpace\PolySpace_Common\ReportGenerator\bin\x86-mingw32
Please note that the x86_64 folder is for the 64bit binary and the other is for the 32bit binary, you only need to change one, but you need to figure out which is the one you are using. But it is also fine if you just change both of them.
Please also note that the directory here is an example Polyspace installation directory, you might need to adapt in your case.
Best Answer