Problem Description
The error "Out of Memory" occurs.
Solution
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.
Open the 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. For the LiveLink for MATLAB in particular, set -Xmx4g
in the file comsolmphserver.ini
.
If you are running out of memory when using LiveLink for MATLAB, also perform the same step for the mli/startup/java.opts
file.
If you do not have write permission to the bin/$arch
directory, you can instead try the following:
- Copy the
comsol.ini
file 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 newcomsol.ini
file.
See also:
Recherche par catégorie
Messages d'erreur (65)Import (10)
Géométrie (14)
Physiques (10)
Solveur (35)
Installation (40)
Maillage (14)
Général (35)
Mécanique des structures (2)
Mécanique des fluides (1)
Post-traitement (4)
Export (1)
Dessin (1)
Informations produit (6)
Multiphysique (1)
Modèles utilisateurs (1)
Electromagnétisme (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.