The error "Out of Memory" occurs.
Of the available memory (RAM and virtual memory), one section, the Java heap, is reserved for Java. The rest of the memory will be available for meshing and solving. If you receive the Out of Memory error, try to increase the Java heap.
comsol.ini file located in the subdirectory
bin/$arch in the COMSOL installation directory, where
$arch corresponds to the platform you are using. Modify the number in the row that starts with
-Xmx, its value is the Java heap size. If you have enough RAM, try doubling the size. By default, this value is
-Xmx2g, so doubling it will give the line
-Xmx4g for a 64-bit platform. Repeat this for all
*.ini files in the same directory.
If you are running out of memory when using LiveLink for MATLAB, also perform the same step for the
If you do not have write permission to the
bin/$arch directory, you can instead try the following:
- Copy the
comsol.inifile to a folder where you have write permission.
- Open the file and modify it according to the instructions above.
- When you launch COMSOL, add the option
-comsolinifile [path]to the COMSOL command, where [path] is the path to your new
Browse by CategoryError Messages (65)
Structural Mechanics (3)
Fluid Dynamics (1)
ALE / Parameterized Geometry (1)
Product Information (2)
User Models (1)
COMSOL makes every reasonable effort to verify the information you view on this page. Resources and documents are provided for your information only, and COMSOL makes no explicit or implied claims to their validity. COMSOL does not assume any legal liability for the accuracy of the data disclosed. Any trademarks referenced in this document are the property of their respective owners. Consult your product manuals for complete trademark details.