[zeromq-dev] ZeroMQ how to troubleshoot the REQ-REP hang

Jithendra Reddy jithendra.reddy at gmail.com
Mon Mar 9 07:37:14 CET 2015


We have implemented a REQ-REP socket communication. In brief the
application does the following:
1. Client asks for a free tcp port through REQ socket
2. Server listens at REP socket, looks for  a free tcp port. Forks a child
process and runs ZeroMQ REP socket listening at the free port. Parent
process sends back this free port detail to client
3. Client then starts communicating to child process at the recieved port
using REQ-REP ZeroMQ socket

The above application has issues, if we do stress test. We are running
nearly 30 clients in one minute. Stress test works fine for a while (15-20
minutes) and then hangs.

We see that message is sent from REQ socket, but not recieved at REP
How to trouble shoot this issue?

We see that lsof is increasing as the stress test progresses. We do close
sockets in the application and also set linger to 0. Could the increased
lsof cause hang?

Your inputs to resolved the hang  and to troubleshoot the issue will be

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20150309/6a237810/attachment.htm>

More information about the zeromq-dev mailing list