From owner-freebsd-questions Thu Dec 26 00:49:33 1996 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id AAA14481 for questions-outgoing; Thu, 26 Dec 1996 00:49:33 -0800 (PST) Received: from marlin.com.br (blue.marlin.com.br [200.255.107.33]) by freefall.freebsd.org (8.8.4/8.8.4) with SMTP id AAA14475 for ; Thu, 26 Dec 1996 00:49:29 -0800 (PST) Received: by marlin.com.br (8.6.12/SMI-4.1) id GAA16099; Thu, 26 Dec 1996 06:48:41 -0200 Date: Thu, 26 Dec 1996 06:48:40 -0200 (EDT) From: "Alexsandro D. F. Correia" To: Chris Bura cc: questions@FreeBSD.ORG Subject: Re: "Too many open files" Question In-Reply-To: <32C03589.1C05@netcorps.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-questions@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk HI Chris, I had the same problem here. To solve this, you will need to recompile your Kernel. Increase the maxusers options to 32. I think this option in your kernel is setted to 10 ( default value ). Also add this two lines : options "CHILD_MAX=128" options "OPEN_MAX=128" This will solve your problem. Alexsandro On Tue, 24 Dec 1996, Chris Bura wrote: > I have a FreeBSD machine acting as both my primary name server > and my web-server. > > 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 also have a BSD machine as my secondary which reloads just fine. > The resources difference in the 2 machines. > 1: -runs primary DNS > -http with about 118 virtual servers. > -about 118 ifconfigs binding IP addresses for those virtual servers. > -everything else is pretty standard - sendmail, etc. > > 2: -runs secondary DNS > -no https > -no ifconfigs for virtual sites. > > Any help would be greatly appreciated. > > Thanks, > > Chris Bura > chris@netcorps.com > +-------------------------------------------------------------+ Alexsandro Correia E-mail: acorreia@marlin.com.br Analista de Suporte Internet Tel : +55 21 224-9950 +55 21 253-2971 +-------------------------------------------------------------+ Marlin Internet http://www.marlin.com.br Rua 7 de Setembro 48/13 Andar Tel: +55 21 224-9950 Centro - Rio de Janeiro Fax: +55 21 223-427 RJ - Brasil +-------------------------------------------------------------+