Page 1 of 1

Memory increases steadily when Coppeliasim running

Posted: 13 May 2022, 14:45
by wozxfdha
Hi,

I found that when I run multi CoppeliaSim instances with remote python program, the memory increases steadily during the running progress. And when the memory up to its maximum value, one of instance crashes.

Currently, I just restart instances to release memory but this is a cumbersome operation for me. Any better ideas?

Thanks.

Re: Memory increases steadily when Coppeliasim running

Posted: 16 May 2022, 16:05
by coppelia
Hello,

are you using the legacy remote API? If yes, try to switch to the ZeroMQ remote API, which is much easier to use, more powerful, and offers all the API functions that you also have from within CoppeliaSim. You'll have to start each CoppeliaSim instance with a different communication port, e.g.:

Code: Select all

coppeliaSim.sh -h -GzmqRemoteApi.rpcPort=23000 
Make sure to increment the rpcPort by 2 for each new instance, e.g. ports could be 23000,23002,23004, etc.

As to your problem with the legacy remote API, not sure. Always discontinue a streaming operation at the end of a simulation or before loading a new scene.

Cheers