Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Dec 1996 17:00:03 -0800 (PST)
From:      Doug White <dwhite@gdi.uoregon.edu>
To:        Chris Bura <chris@main.Netcorps.com>
Cc:        questions@freebsd.org
Subject:   Re: "Too many open files" Question
Message-ID:  <Pine.BSI.3.94.961224165649.267A-100000@localhost>
In-Reply-To: <32C03589.1C05@netcorps.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 24 Dec 1996, Chris Bura wrote:

> Problem:  When I edit an entry in my DNS and then run Kill -HUP PID
> my name server does not restart.  This is the message I get
> in /var/log/messages:
> -------
> Dec 24 11:27:33 main named[68]: reloading nameserver
> Dec 24 11:27:33 main named[68]: socket(SOCK_DGRAM): Too many open files
> - exiting
> -------
> I've tried, named.restart, named.reload, named -b ....
> However, if I reboot, the name server reloads just fine.
> I've increased the MAX_OPEN significantly.  Didn't help.

I'm guessing you run many virtual domains.

Before reloading named you need to run the following command:

limit openfiles=128

or

limit openfiles=360

Or

ulimit

This expands or removes the shell open files limitation.  This is somewhat
dependent on your shell.

There are many instances of this in the mail archvies.  Search for 'named
AND open', with the same 

Hope this helps.

Doug White                              | University of Oregon  
Internet:  dwhite@resnet.uoregon.edu    | Residence Networking Assistant
http://gladstone.uoregon.edu/~dwhite    | Computer Science Major




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSI.3.94.961224165649.267A-100000>