Date: Mon, 21 Aug 2000 10:40:51 -0700 (PDT) From: Doug White <dwhite@resnet.uoregon.edu> To: Jonathan Defries <jonathan@corpex.com> Cc: "Freebsd-Stable@Freebsd. Org" <freebsd-stable@FreeBSD.ORG> Subject: Re: Too many open files Message-ID: <Pine.BSF.4.21.0008211038070.32326-100000@resnet.uoregon.edu> In-Reply-To: <NEBBJLAOAKHHJLPLDLPIEENODAAA.jonathan@corpex.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 21 Aug 2000, Jonathan Defries wrote: > Hi all, > > I'm trying to run a caching nameserver on one of my web servers > and it keeps complaining: > > socket(SOCK_DGRAM): Too many open files In addition to the login.conf/limits hint, check the sysctl kern.maxfiles and kern.maxfilesperproc > What's the best thing to do to try and alleviate this? I have > maxusers set at 256, I've seen mention of a new kernel with a > couple of extra options, would this be the way to go? Note that bind opens two listening sockets per configured IP address. If you have several aliases on one interface it'll open 2*#IPs and probably hit the limit. You probably want to limit named to binding to specific IPs; see the 'listen-on' option, e.g. options { listen-on { 127.0.0.1; 192.168.1.2; }; }; Doug White | FreeBSD: The Power to Serve dwhite@resnet.uoregon.edu | www.FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0008211038070.32326-100000>