Memory increases steadily when Coppeliasim running

Typically: "How do I... ", "How can I... " questions
Post Reply
wozxfdha
Posts: 51
Joined: 10 Jun 2021, 09:40

Memory increases steadily when Coppeliasim running

Post 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.

coppelia
Site Admin
Posts: 10338
Joined: 14 Dec 2012, 00:25

Re: Memory increases steadily when Coppeliasim running

Post 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

Post Reply