[zeromq-dev] queue length
Martin Sustrik
sustrik at 250bpm.com
Fri Apr 22 07:31:56 CEST 2011
Hi Andrew,
> i know this was discussed earlier in the 2.0 context, but i can't recall
> what the resolution was. is there a way to find out how many
> messages are queued for a zmq socket? especially for PUSH/PULL.
> i know its a hard problem in general, but i need something.
The problem is that messages can be stored in network buffers which we
have no way of querying.
> my real problem is that i have a system of zeromq-connected processes
> and the system runs out of memory. so far, its seems like zeromq is the
> cause,
> although it is no zeromq bug. it is because processes are queueing up
> serious amounts of
> messages thus enlarging the memory footprint.
> if i had a notion of queue length (even a sloppy one), i could take
> automatic action.
Why not set hard buffer limits (0MQ's HWMs & TCP buffer sizes)?
Martin
More information about the zeromq-dev
mailing list