[zeromq-dev] Too many open files (signaler.cpp:330)
Chuck Remes
cremes.devlist at mac.com
Wed Jan 4 14:55:36 CET 2012
On Jan 4, 2012, at 7:21 AM, Martin Sustrik wrote:
> Hi Chuck,
>
>> 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.
>
> That's strange. 2800 sockets should use 5600 fds for socketpairs + the
> fds for the actual connections etc.
That's what I thought too which leads me to think this might be a side effect of something else.
>> Any suggestions on a printf I could add to the library to help narrow
>> down the cause of this?
>
> src/signaler.cpp:329
What elements should I printf? Is the +sv+ variable important? What values should it have (or not have)?
Is there a way to print the total number of FDs in use at that point in time? That is, can I add a counter ivar to the class and increment it in that function?
cr
More information about the zeromq-dev
mailing list