[zeromq-dev] EPGM PUB/SUB leak?

Pieter Hintjens ph at imatix.com
Thu Aug 1 11:45:18 CEST 2013


Could you try with the latest libzmq master? Thanks.

On Thu, Aug 1, 2013 at 11:31 AM, Matteo Fortini
<matteo.fortini at gmail.com> wrote:
> I have an EPGM PUB/SUB network, with multiple publishers/subscribers.
>
> Every time a PUBlisher connects and disconnects (even without sending
> any message), each SUBscriber's virtual memory grows by 132kB.
>
> The behavior is consistent, the publishers just connect, disconnect
> and die, and the subscribers are simple receivers or even a zeromq
> forwarder device.
>
> Has anyone seen the same behavior?
>
> Sample SUBscriber:
> http://pastebin.com/hcD1uBMs
>
> Sample PUBlisher:
> http://pastebin.com/e5ukRkVr
>
> The behavior stays the same even if I comment away the zstr_send()
> part from the publisher.
>
> I tried both ZeroMQ 2.1.9 which is my production version (embedded
> stuff, can't upgrade easily), and 2.2.0.
> I also tried both CZMQ 1.2.1 which is the one I have in production,
> and 1.4.1, no changes.
>
> A sample output of
> pmap $(pidof subscriber) | tail -n1
>
> while calling the publisher is this:
>
> total 30252K
> total 30648K
> total 31440K
> total 31440K
> total 31440K
> total 31704K
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev



More information about the zeromq-dev mailing list