Simulation Times Increasing with LiveLink for MATLAB

Please login with a confirmed email address before reporting spam

I've been running automated simulations with LiveLink for MATLAB, where each run makes small geometry changes, remeshes, and solves. I’ve noticed that while early simulations take ~45 minutes, after 20–30 runs, the simulation time increases a lot (more than twice), even though the problem size stays the same.

Has anyone else experienced this slowdown?

Are there best practices for preventing resource issues or memory leaks when using LiveLink for MATLAB for multiple runs? Is it helpful to restart the COMSOL server periodically, and if so, how do you safely restart it without physically clicking from the start menu?

Would appreciate any advice!


1 Reply Last Post 14 nov 2025, 04:29 GMT-5
Lars Gregersen COMSOL Employee

Please login with a confirmed email address before reporting spam

Posted: 6 hours ago 14 nov 2025, 04:29 GMT-5

Hi Aragon

This shouldn't happen. What version of Comsol are you using?

Can you share the code? Either here or by sending it to support?

Restarting is possible, but shouldn't really be necessary. The commands mphstartcomsolmphserver and mphstart can be used for this.

-------------------
Lars Gregersen
Comsol Denmark
Hi Aragon This shouldn't happen. What version of Comsol are you using? Can you share the code? Either here or by sending it to support? Restarting is possible, but shouldn't really be necessary. The commands mphstartcomsolmphserver and mphstart can be used for this.

Reply

Please read the discussion forum rules before posting.

Please log in to post a reply.

Note that while COMSOL employees may participate in the discussion forum, COMSOL® software users who are on-subscription should submit their questions via the Support Center for a more comprehensive response from the Technical Support team.