[zeromq-dev] ZMQ Proxy crash in every 3 days
Ashok Kumar Karasala
ashokrj863 at gmail.com
Mon Apr 5 07:06:21 CEST 2021
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20210405/c168825a/attachment.htm>
More information about the zeromq-dev
mailing list