Discussion Closed This discussion was created more than 6 months ago and has been closed. To start a new discussion with a link back to this one, click here.
on MacOS system Memory Usage Increase With Looped LiveLink For MATLAB
Posted 2020年2月20日 GMT-5 21:41 3 Replies
Please login with a confirmed email address before reporting spam
Question: How can I eliminate the LiveLink for MATLAB and COMSOL server from storing "things" in my computer memory when I run it on my Macbook?
I have tried all the method on the discussion forum. However,I only found solutions for other systems, but no corresponding solutions for MacOS system. How to solve this problem on the MacOS system?
Situation: I'm solving the simulation with varying parameters in a for loop. Unexpectedly, as the simulation is running the memory usage slowly piles up and the running time of each loop increases. Even after clearing the workspace (clear all), the program comsolmphserver.exe is still consuming a lot of memory and it runs slower. Since I am running many iterations, my computer slowly run out of memory before I can finish all the possible conditions. These different conditions need to be run in a single run for optimization purposes, thus the option of separating them into smaller chuck cannot apply here.
I have tried all the method on the discussion forum like removing all the model objects by using the command: ModelUtil.clear or disabling the model history by using: model.hist.disable.Even after I tried these two commands, the memory usage for the LiveLink server still increase everytime I run the model. And the memory does not reset itself. I have to close the program and rerun it to reset the memory on the MacOs system.
Please let me know if you have any suggestions.
Thank you in advance!