[zeromq-dev] Too many open files (signaler.cpp:330)

Chuck Remes cremes.devlist at mac.com
Wed Jan 4 13:55:40 CET 2012


I need some guidance on how to figure out why I am getting this assertion (0mq 2.1.11). I assume it is due to running out of file descriptors, but it's happening in a place (socketpairs) where I thought the code was eliminated. That is, I didn't think 0mq used socketpairs for internal communication anymore after about version 2.1.5 or so.

This is on OSX. I have the open file limit set to 400k. I have modified src/config.hpp MAX_SOCKETS to be 51200. I get this assertion after opening around 2800 0mq sockets and closing 1500 of them, so I am *nowhere near* the FD limit or the max socket limit.

Any suggestions on a printf I could add to the library to help narrow down the cause of this?

cr




More information about the zeromq-dev mailing list