Note: This discussion is about an older version of the COMSOL Multiphysics® software. The information provided may be out of date.

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.

Comsol server keeps models in memory?

Please login with a confirmed email address before reporting spam

Dear all,

when running a batch of models in Server/Client mode, the Comsol server process (started with the "multi on" option) seems to keep the model in the server's RAM even when running "ModelUtil.disconnect" and "clear all" when the model run is finished.
So after a few model runs, the server process will run out of memory.

When running the models separately in a sequence - each time using a new server process (i.e. NOT using the "multi on" option but rather starting comsolserver again) - it works.

Anyone experienced the same?
Is there a way to free the memory when the model run is finished?

Thanks a lot and have a nice weekend,
Juergen

1 Reply Last Post 2011年9月15日 GMT-4 10:11
COMSOL Moderator

Hello Juergen Hansmann

Your Discussion has gone 30 days without a reply. If you still need help with COMSOL and have an on-subscription license, please visit our Support Center for help.

If you do not hold an on-subscription license, you may find an answer in another Discussion or in the Knowledge Base.


Please login with a confirmed email address before reporting spam

Posted: 1 decade ago 2011年9月15日 GMT-4 10:11
I contacted Comsol Support because I had the same issue and here is the answer:

You have two things to do to make sure to release the memory in the COMSOL
server.

1- Use the command

ModelUtil.remove('Model')

to remove the COMSOL model object from the COMSOL server. Of course chane
the name 'Model' to name of the model object available in the COMSOL
server.
You can get the list of the model object available in the COMSOL server
with the command

ModelUtil.tags

2- Make sure to use the latest version of COMSOL Multiphysics as we have
fixed some memory leaking bugs in previous version. The upcoming version
COMSOL 4.2a also contains some fix regarding this.
I contacted Comsol Support because I had the same issue and here is the answer: You have two things to do to make sure to release the memory in the COMSOL server. 1- Use the command ModelUtil.remove('Model') to remove the COMSOL model object from the COMSOL server. Of course chane the name 'Model' to name of the model object available in the COMSOL server. You can get the list of the model object available in the COMSOL server with the command ModelUtil.tags 2- Make sure to use the latest version of COMSOL Multiphysics as we have fixed some memory leaking bugs in previous version. The upcoming version COMSOL 4.2a also contains some fix regarding this.

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.