From owner-freebsd-questions@FreeBSD.ORG Thu Oct 20 10:35:40 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 682E116A41F for ; Thu, 20 Oct 2005 10:35:40 +0000 (GMT) (envelope-from Axel.Gruner@suedfactoring.de) Received: from sffwd0.suedfactoring.de (port-212-202-224-251.static.qsc.de [212.202.224.251]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB4D243D5A for ; Thu, 20 Oct 2005 10:35:38 +0000 (GMT) (envelope-from Axel.Gruner@suedfactoring.de) Received: from localhost (localhost.suedfactoring.de [127.0.0.1]) by sffwd0.suedfactoring.de (Postfix) with ESMTP id 9362C7E833 for ; Thu, 20 Oct 2005 12:31:16 +0200 (CEST) Received: from sffwd0.suedfactoring.de ([127.0.0.1]) by localhost (sffwd0.suedfactoring.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 89429-09 for ; Thu, 20 Oct 2005 12:31:15 +0200 (CEST) Received: by sffwd0.suedfactoring.de (Postfix, from userid 1009) id 872607E832; Thu, 20 Oct 2005 12:31:15 +0200 (CEST) Received: from sfld1.suedfac.com (sfld1.SUEDFAC.COM [10.4.1.241]) by sffwd0.suedfactoring.de (Postfix) with ESMTP id 6C5DB7E818 for ; Thu, 20 Oct 2005 12:31:14 +0200 (CEST) Importance: Normal X-Priority: 3 (Normal) MIME-Version: 1.0 From: Axel.Gruner@suedfactoring.de To: freebsd-questions@freebsd.org X-MIMETrack: MIME-CD by Notes Server on sfld1/suedfactoring(Release 6.5.2|June 01, 2004) at 10/20/2005 12:25:26, MIME-CD complete at 10/20/2005 12:25:26, Serialize by Router on sfld1/suedfactoring(Release 6.5.2|June 01, 2004) at 10/20/2005 12:25:27 Date: Thu, 20 Oct 2005 12:25:26 +0200 Message-ID: Content-type: text/plain; charset=US-ASCII X-Copyrighted-Material: This material is copyrighted X-Virus-Scanned: amavisd-new at suedfactoring.de Subject: Need your help: Bad file descriptor and too many files open X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 20 Oct 2005 10:35:40 -0000 Hi, I get the following messages sometimes if i try to restart sshd: #etc/rc.d/sshd restart eval: Pipe call failed: Bad file descriptor eval: Pipe call failed: Bad file descriptor [...] #/etc/rc.d/sshd restart /etc/rc.subr: Pipe call failed: Too many open files in system I am running 5.4-RELEASE-p6. Dual XEON 3.06GHz with 2 GB of RAM. sysctl: #sysctl -a kern.openfiles kern.openfiles: 9607 #sysctl -a kern.maxfiles kern.maxfiles: 65536 /etc/sysctl.conf: kern.maxfiles="65536" kern.ipc.nmbclusters=64000 kern.ipc.nmbufs=256000 kern.maxproc=8192 kern.ipc.somaxconn=4096 #vmstat -i interrupt total rate irq24: xl0 46574469 169 [...] irq29: em0 1 0 irq30: em1 1 0 Device Polling is active. load averages: 1.00, 1.08, 1.09 647 processes: 1 running, 644 sleeping, 2 zombie A lot of users connects via ssh (x-forward). Also sometimes they can not connect because of "too many open files". So what could be the problem? Any hints? Thanks in advance. asg ######################################################################## # DISCLAIMER # # # # Der Inhalt dieser E-Mail ist vertraulich. Falls Sie nicht der # # angegebene Empfaenger sind oder falls diese Email irrtuemlich an Sie # # addressiert wurde, verstaendigen Sie bitte den Absender sofort und # # loeschen Sie die Email umgehend. Das unerlaubte Kopieren sowie die # # unbefugte Uebermittlung sind nicht gestattet. # # Die Sicherheit von Uebermittlungen per Email kann nicht garantiert # # werden. Falls Sie eine Bestaetigung wuenschen, fordern Sie bitte den # # Inhalt der Email als Hardcopy an. # # # # # # The contents of this e-mail are confidential. # # If you are not the named addressee you should not disseminate, # # distribute or copy this e-mail. Please notify the sender immediately # # if you have received this e-mail by mistake and delete this e-mail # # from your system. Finally, the recipient should check this email and # # any attachments for the presence of viruses. The company accepts no # # liability for any damage caused by any virus transmitted by this # # email. # # # # SuedFactoring GmbH, Heilbronner Strasse 86, 70191 Stuttgart # ########################################################################