socket: too many open file descriptors

pollex andres.vidoz at gmail.com
Thu Dec 4 13:19:25 UTC 2008


On 4 dic, 10:59, Mark Andrews <Mark_Andr... at isc.org> wrote:
>         --enable-threads=yes
>
> In message <85e79363-8e52-43bc-8fa7-d66b4f180... at v4g2000yqa.googlegroups.com>,
>
> pollex writes:
> > 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=3D"-ISC_SOCKET_FDSETSIZE=3D4096" ./configure --prefix=3D/u=
> > sr/
> > > > 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=3D"-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)
>
> > > =A0 =A0 =A0 =A0 Log messages would be useful.
>
> > > =A0 =A0 =A0 =A0 What does the following report?
> > > =A0 =A0 =A0 =A0 "named -g -u bind -n 8 -t /var/lib/named -c /etc/bind/nam=
> > ed.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 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 INTERNET: Mark_And=
> > r... 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' !=3D 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
> > _______________________________________________
> > 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

Ok Mark, I can try that...
But in the config.log I see the lines:
checking whether to build with thread support... yes
checking whether to build with threads... yes

So I think putting only --enable-threads is the same.




More information about the bind-users mailing list