Upper limit on total number of publishers and subscribers

5 posts / 0 new
Last post
Offline
Last seen: 4 months 3 weeks ago
Joined: 06/10/2015
Posts: 9
Upper limit on total number of publishers and subscribers

Hi,

We've encountered a problem when creating more than 9 publishers or subscribers in a single process in Windows.  It does not matter how many publishers or subscribers are created, but once we attempt to create the 10th publisher/subscriber, we are unable to create a domain participant.

We are using the community edition.  Is this a known issue or known limitation of the community edition?

Regards,

Ricky

Offline
Last seen: 4 months 3 weeks ago
Joined: 06/10/2015
Posts: 9

Note: we tried changing the max_objects_per_thread to 2048 and 4096 but this did not fix this issue.

Regards,

Ricky

rip
rip's picture
Offline
Last seen: 1 week 1 day ago
Joined: 04/06/2012
Posts: 315

The community edition is the same as the commercial edition.

You are running into something else.  Might be a memory thing.

Also, the description is a bit weird, in that you suggest you are creating the publishers/subscribers first, and then trying to create a domain participant.  Are you saying you can't create a /second/ domain participant? or are you saying that "for each publisher/subscriber we have a domain participant". 

If the last, that's bad practice.  yes, the example code comes out that way, but when you create an application, you try to minimize absolutly the number of participants.  If that app is only on one domain ID, then you should really only have one DomainParticipant, (which will be the factory for many publishers and subscribers).

So, can you clarify and describe the steps you are taking?


rip

Offline
Last seen: 4 months 3 weeks ago
Joined: 06/10/2015
Posts: 9

RIP,

We are creating a DomainParticipant for each publisher/subscriber.  Modifying to create a single DomainParticipant fixed this problem.  Thank you for your help.

Regards,

Ricky

rip
rip's picture
Offline
Last seen: 1 week 1 day ago
Joined: 04/06/2012
Posts: 315

Glad I could help.

rip