socket: too many open file descriptors

pollex andres.vidoz at gmail.com
Thu Dec 4 11:57:47 UTC 2008


On 3 dic, 21:08, Mark Andrews <Mark_Andr... at isc.org> wrote:
> In message <03541aa5-b28c-4177-92eb-670dd96b3... at 13g2000yql.googlegroups.com>,
>
> pollex writes:
> > Hi Jinmei I have followed your advice and I have installed and
> > compiled the Bind 9.3.6 with the following command:
> > STD_CDEFINES="-ISC_SOCKET_FDSETSIZE=4096" ./configure --prefix=/usr/
> > local/bind9.3.6 --enable-threads
> > But now I have the following issue, I can't start bind with multi
> > threading...
> > I have in the init script the lines:
> > OPTIONS="-u bind -n 8 -t /var/lib/named -c /etc/bind/named.conf"
> > and in the start part:
> > mount --bind /proc/ /var/lib/named/proc/ -o ro (This is needed because
> > bin runs in jail)
>
> > Any idea? (With the previous version this works ok)
>
>         Log messages would be useful.
>
>         What does the following report?
>         "named -g -u bind -n 8 -t /var/lib/named -c /etc/bind/named.conf"
>
> > Thanks for all
>
> > _______________________________________________
> > bind-users mailing list
> > bind-us... at lists.isc.org
> >https://lists.isc.org/mailman/listinfo/bind-users
>
> --
> Mark Andrews, ISC
> 1 Seymour St., Dundas Valley, NSW 2117, Australia
> PHONE: +61 2 9871 4742                 INTERNET: Mark_Andr... at isc.org
> _______________________________________________
> bind-users mailing list
> bind-us... at lists.isc.orghttps://lists.isc.org/mailman/listinfo/bind-users

Mark, thanks for the reply
this is the report:
04-Dec-2008 09:52:54.950 starting BIND 9.3.6 -g -u bind -n 8 -t /var/
lib/named -c /etc/bind/named.conf
04-Dec-2008 09:52:54.950 using up to 4096 sockets
04-Dec-2008 09:52:54.954 loading configuration from '/etc/bind/
named.conf'
04-Dec-2008 09:52:54.956 using default UDP/IPv4 port range: [1024,
65535]
04-Dec-2008 09:52:54.956 using default UDP/IPv6 port range: [1024,
65535]
04-Dec-2008 09:52:54.958 listening on IPv4 interface lo, 127.0.0.1#53
04-Dec-2008 09:52:54.958 could not listen on UDP socket: address in
use
04-Dec-2008 09:52:54.958 creating IPv4 interface lo failed; interface
ignored
04-Dec-2008 09:52:54.958 listening on IPv4 interface eth1,
###.###.#.### #53
04-Dec-2008 09:52:54.958 could not listen on UDP socket: address in
use
04-Dec-2008 09:52:54.958 creating IPv4 interface eth1 failed;
interface ignored
04-Dec-2008 09:52:54.958 not listening on any interfaces
04-Dec-2008 09:52:54.959 /etc/bind/named.conf:80: couldn't add command
channel 127.0.0.1#953: address in use
04-Dec-2008 09:52:54.959 ignoring config file logging statement due to
-g option
04-Dec-2008 09:52:54.960 additionally listening on IPv4 interface lo,
127.0.0.1#53
04-Dec-2008 09:52:54.960 could not listen on UDP socket: address in
use
04-Dec-2008 09:52:54.960 creating IPv4 interface lo failed; interface
ignored
04-Dec-2008 09:52:54.960 additionally listening on IPv4 interface
eth1, ###.###.#.### #53
04-Dec-2008 09:52:54.960 could not listen on UDP socket: address in
use
04-Dec-2008 09:52:54.960 creating IPv4 interface eth1 failed;
interface ignored
04-Dec-2008 09:52:54.961 zone 0.in-addr.arpa/IN: loaded serial 1
04-Dec-2008 09:52:54.961 zone 127.in-addr.arpa/IN: loaded serial 1
04-Dec-2008 09:52:54.962 zone 255.in-addr.arpa/IN: loaded serial 1
04-Dec-2008 09:52:54.962 /etc/bind/db.bind:5: class 'CH' != zone class
'IN'
04-Dec-2008 09:52:54.962 zone bind/IN: loading master file /etc/bind/
db.bind: bad class
04-Dec-2008 09:52:54.962 zone localhost/IN: loaded serial 1
04-Dec-2008 09:52:54.962 running
04-Dec-2008 09:52:56.244 shutting down
04-Dec-2008 09:52:56.245 exiting

In the other version i had a line like this
found X CPUs, using X worker threads

Thanks again



More information about the bind-users mailing list