Hi Team,

We are facing a ZMQ proxy crash every 3 days and when we look at the system
graphs we don't see any CPU or memory spikes. From the code, we have
gracefully handled the socket's initialization and termination.


We couldn't trace back to any system resource being the issue to crash. Is
there any way to debug this?

At the time of crash :
 CPU, Memory and open file's count are under the allocated limits.


Proxy code :

def main(lang):
    global context
    context = zmq.Context()
    frontend = context.socket(zmq.XPUB)
    frontend.bind("tcp://*:%s" % (8888,))

    backend = context.socket(zmq.XSUB)
    backend.bind("tcp://*:%s" % (9999,))

    try:
        zmq.proxy(frontend, backend)
    except Exception as e:
        print(e)

    frontend.close()
    backend.close()
    context.term()

Thanks & Regards,

Ashok K.
_______________________________________________
zeromq-dev mailing list
zeromq-dev@lists.zeromq.org
https://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to