[zeromq-dev] Resource temporarily unavailable") at src/err.cpp:83

Marcin Romaszewicz marcin at brkt.com
Fri Aug 12 19:31:04 CEST 2016

You are running out of file descriptors, most likely. Each outgoing
connection requires a file descriptor, and 100k is a lot of sockets. Are
you trying to make 100k ZMQ sockets? If  you are, just limit the number of
outgoing sockets, and it should work. Only send 1000 at a time, for example.

On Fri, Aug 12, 2016 at 5:26 AM, Ranjeet Kumar <xs2ranjeet at gmail.com> wrote:

> Hi,
> I am using Zeromq 4.1.5 and czmq 3.0.2 version.
> I am getting below exception every time when i am sending message to 100k
> zmq dealer clients.
> In my zmq server application I am having 2 threads. In main thread I am
> listening via zmq router socket using poll, getting HB. And from other
> thread I am getting
> message that i need to send 100k zmq dealer clients. But as soon as count
> reach near to 4-5k clients to send app get crashed. Please suggest I am in
> deep trouble.
> #0  0x00007ffff68f15f7 in raise () from /lib64/libc.so.6
> #1  0x00007ffff68f2ce8 in abort () from /lib64/libc.so.6
> #2  0x00007ffff7b8f769 in zmq::zmq_abort (errmsg_=errmsg_ at entry=0x7ffff6a3af60
> "Resource temporarily unavailable") at src/err.cpp:83
> #3  0x00007ffff7ba72f9 in zmq::signaler_t::recv (this=this at entry=0x60b8a0)
> at src/signaler.cpp:282
> #4  0x00007ffff7b92f30 in zmq::mailbox_t::recv (this=this at entry=0x60b840,
> cmd_=cmd_ at entry=0x7ffff490cbc0, timeout_=timeout_ at entry=0) at
> src/mailbox.cpp:87
> #5  0x00007ffff7ba8249 in zmq::socket_base_t::process_commands
> (this=this at entry=0x60b480, timeout_=timeout_ at entry=0,
> throttle_=throttle_ at entry=true)
>     at src/socket_base.cpp:1044
> #6  0x00007ffff7ba856b in zmq::socket_base_t::send (this=this at entry=0x60b480,
> msg_=msg_ at entry=0x7fffe800d714, flags_=flags_ at entry=2) at
> src/socket_base.cpp:829
> #7  0x00007ffff7bbe09c in s_sendmsg (s_=s_ at entry=0x60b480, msg_=msg_ at entry
> =0x7fffe800d714, flags_=flags_ at entry=2) at src/zmq.cpp:346
> #8  0x00007ffff7bbe41a in zmq_msg_send (msg_=msg_ at entry=0x7fffe800d714,
> s_=s_ at entry=0x60b480, flags_=flags_ at entry=2) at src/zmq.cpp:590
> #9  0x00007ffff7bbe42e in zmq_sendmsg (s_=s_ at entry=0x60b480,
> msg_=msg_ at entry=0x7fffe800d714, flags_=flags_ at entry=2) at src/zmq.cpp:355
> #10 0x00007ffff78ee693 in zframe_send (self_p=self_p at entry=0x7ffff490cce8,
> dest=dest at entry=0x60b480, flags=<optimized out>) at src/zframe.c:158
> #11 0x00007ffff78f7e1f in zmsg_send (self_p=0x7ffff490cdc0,
> dest=<optimized out>) at src/zmsg.c:140
> Thanks
> Ranjeet
> _______________________________________________
> zeromq-dev mailing list
> zeromq-dev at lists.zeromq.org
> http://lists.zeromq.org/mailman/listinfo/zeromq-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.zeromq.org/pipermail/zeromq-dev/attachments/20160812/3c8a2617/attachment.htm>

More information about the zeromq-dev mailing list