Shared memory problem

4 posts / 0 new
Last post
Offline
Last seen: 7 years 2 months ago
Joined: 12/29/2016
Posts: 5
Shared memory problem

I have two program.one is the publisher,the other is the subscriber.when they run on the same host,several minutes from starting,no data can be received by the subscriber.

While two program run on different hosts,everything is ok.

Who can tell me wh y.

Thanks.

jwillemsen's picture
Offline
Last seen: 2 years 10 months ago
Joined: 09/24/2013
Posts: 55

We recently observed the same issue, at the moment we run on the same host no discovery happens because of a shared memory issue. According to RTI support this could happen at the moment the shared memory gets corrupted due to an incorrect shutdown or crash of a DDS application earlier. Have you tried to remove the shared memory segments that have no processes attached. For example you can use the command below to do so, we got that from RTI support.. We have updated our QoS settings to use (for the moment) only udp because that seems to work always.

ipcs -m | egrep "0x[0-9a-f]+ [0-9]+"|awk '{ if ($6 == 0) { print $2; } }'|xargs -n1 ipcrm -m
Offline
Last seen: 7 years 2 months ago
Joined: 12/29/2016
Posts: 5
I have changed participant's qos to use only udpv4.the problem still exists. When subscriber stop receiving data.i open the dds spy tool.The subscriber can receive data again.
Offline
Last seen: 7 years 2 months ago
Joined: 12/29/2016
Posts: 5
By the way,my operating system is win7