Lars Gregersen
COMSOL Employee
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
29 avr. 2019, 03:38 UTC−4
Updated:
5 years ago
18 juin 2019, 07:45 UTC−4
Hi
This shouldn't happen, of course.
If you haven't done so already then upgrade to Comsol 5.4 update 3.
If that doesn't work for your model then consult this knowledge base entry:
https://www.comsol.eu/support/knowledgebase/1264
-------------------
Lars Gregersen
Comsol Denmark
Hi
This shouldn't happen, of course.
If you haven't done so already then upgrade to Comsol 5.4 update 3.
If that doesn't work for your model then consult this knowledge base entry:
Please login with a confirmed email address before reporting spam
Posted:
6 years ago
6 mai 2019, 14:20 UTC−4
Hi Lars Gregersen,
Thank you! the solution given in the knowledge base entry works!
Best,
Yu Hui
Hi Lars Gregersen,
Thank you! the solution given in the knowledge base entry works!
Best,
Yu Hui
Please login with a confirmed email address before reporting spam
Posted:
5 years ago
18 juin 2019, 07:39 UTC−4
Hi,
This was a well formulated forum post Yu Hui Lui, thank you for posting! I also stumbled into the exact same problem (Ubuntu 18.04.2 LTS, COMSOL 5.4). I am performing many simulations in a sequence via the MATLAB LiveLink module. In my case, the used RAM would "partly reset" (around 50% RAM reset) after each simulaton, but still COMSOL stored about half of the data from the previous simulation to the next. This caused the RAM usage to slowly accumulate until I hit the 16 GB limit on my computer, and then COMSOL switched to use the SWAP-memory of Linux. This continued until my SWAP-memory ran out, and finally everything crashed and was shut down.
Luckily for me, the solution in the knowledge base entry 1264 presented by Lars Gregersen worked for me! Now I can perform all of my simulations since the RAM usage resets after each simulation. I hope that this post can help more people solve their RAM issues when working with MATLAB LiveLink (this doesn't seem to happen in COMSOL client with GUI). It was definitely not obvious for me that my problem stems from a memory leakage bug in the Fortran Runtime Libraries.
Best regards
Sephia
Hi,
This was a well formulated forum post Yu Hui Lui, thank you for posting! I also stumbled into the exact same problem (Ubuntu 18.04.2 LTS, COMSOL 5.4). I am performing many simulations in a sequence via the MATLAB LiveLink module. In my case, the used RAM would "partly reset" (around 50% RAM reset) after each simulaton, but still COMSOL stored about half of the data from the previous simulation to the next. This caused the RAM usage to slowly accumulate until I hit the 16 GB limit on my computer, and then COMSOL switched to use the SWAP-memory of Linux. This continued until my SWAP-memory ran out, and finally everything crashed and was shut down.
Luckily for me, the solution in the knowledge base entry 1264 presented by Lars Gregersen worked for me! Now I can perform all of my simulations since the RAM usage resets after each simulation. I hope that this post can help more people solve their RAM issues when working with MATLAB LiveLink (this doesn't seem to happen in COMSOL client with GUI). It was definitely not obvious for me that my problem stems from a memory leakage bug in the Fortran Runtime Libraries.
Best regards
Sephia