Skip to content

Managing Dynamic Port Consumption in NetMQ for Efficient Pub/Sub Applications #1103

Open
@KaisWali

Description

@KaisWali

NetMQ Version: last version
Operating System: win 2019
.NET Version: net 6

I'm using NetMQ to build an application based on the Pub/Sub design pattern. When I run the publisher on a specific port and connect to it with the subscriber, I've noticed that ZMQ is consuming more than 50 dynamic ports. After running multiple instances of my application, I've exhausted all the available dynamic ports on my machine, leading to an "address in use" exception.

Is there a way to limit the number of ports used by ZMQ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions