[zeromq-dev] EPGM PUB/SUB leak?
Matteo Fortini
matteo.fortini at gmail.com
Thu Aug 1 11:31:33 CEST 2013
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
More information about the zeromq-dev
mailing list