Anand Buddhdev <ana...@ripe.net> wrote:
>
> The server has many IP addresses. In named.conf, there are 129 IPv6 addresses
> in the "listen-on-v6" option and 128 IPv4 addresses in the "listen-on" option.
> The server begins running, but then repeatedly emits this log:
>
> general: error: socket: file descriptor exceeds limit (46474/21000)

Hmm, (128+129)*88*2 == 45232, (2 == UDP + TCP) so the big number looks
plausible.

The 21000 limit comes from a hardcoded value for ISC_SOCKET_MAXSOCKETS.

You can adjust -U (number of listeners) on the command line to avoid
hitting the fixed MAXSOCKETS limit, and leave -n (max sockets) unset, at
its default. You can also set ISC_SOCKET_MAXSOCKETS at build time, if you
can work out how to wrangle the build system :-)

Tony.
-- 
f.anthony.n.finch  <d...@dotat.at>  https://dotat.at/
Fair Isle, Faeroes: Southwest 6 to gale 8, occasionally severe gale 9
in Fair Isle, veering northwest gale 8 to storm 10. Rough or very
rough, occasionally moderate at first in southeast Fair Isle, becoming
very rough or high. Rain, squally showers later, wintry in Faeroes.
Good, occasionally poor.

_______________________________________________
Please visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe 
from this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to