[zeromq-dev] Too many open files (signaler.cpp:330)
Martin Lucina
martin at lucina.net
Thu Jan 5 02:07:26 CET 2012
> For the total number of fds in use in the system, you could try
> something like 'lsof'.
>
> If you just need the total number used in that particular process,
> then fds are just integers numbered from 0 up, so printing whatever is
> the last one you get from socket() or similar will tell you how many
> that process is using up till now.
Actually, the latter won't work since fds are re-used within a process,
i.e.
0 = open (...)
1 = open (...)
2 = open (...)
close (0)
0 = open (...)
So 'lsof' is your best bet.
-mato
--
Martin Lucina <martin at lucina.net>
More information about the zeromq-dev
mailing list