From owner-freebsd-questions@FreeBSD.ORG Wed Mar 23 16:27:02 2005 Return-Path: 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 08C2C16A4CE for ; Wed, 23 Mar 2005 16:27:02 +0000 (GMT) Received: from ylpvm15.prodigy.net (ylpvm15-ext.prodigy.net [207.115.57.46]) by mx1.FreeBSD.org (Postfix) with ESMTP id A2BC443D1F for ; Wed, 23 Mar 2005 16:27:01 +0000 (GMT) (envelope-from mbsd@pacbell.net) Received: from sotec.home (adsl-64-166-23-88.dsl.snfc21.pacbell.net [64.166.23.88])j2NGMrbb028712; Wed, 23 Mar 2005 11:22:56 -0500 Date: Wed, 23 Mar 2005 08:26:51 -0800 (PST) From: =?ISO-8859-1?Q?Mikko_Ty=F6l=E4j=E4rvi?= X-X-Sender: mikko@sotec.home To: Axel.Gruner@suedfactoring.de In-Reply-To: Message-ID: <20050323082230.L51498@sotec.home> References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 5.3 and too many files open... X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2005 16:27:02 -0000 Hi, On Wed, 23 Mar 2005 Axel.Gruner@suedfactoring.de wrote: > Hi, > > i run into a problem on a FreeBSD 5.3-STABLE Applicationserver (2GB of RAM, > 4GB Swap, Dual XEON 3.06Ghz). > The box serves the "xfrce4-panel" for 80 Network Clients via ssh so the > Users can start OpenOffice.org and firefox from that panel. > It is goin very well, except a message (and also a problem) i run into the > last day. > If i tried to open firefox from a networkclient and received the message > "too many files open...". I saw that message on 3 different Network Clients > and just after a fresh configure and the first time starting firfox on > these Networkclients with that UID. > > I checked my configuration on the server about "openfiles": > > kern.openfiles:9306 > kern.maxfiles:65536 > > netstat -m > 3952 mbufs in use > 732/64000 mbuf clusters in use (current/max) > [...] > > "fstat" shows me 393 on User A and on User B 3459. I did not check the > other users. > > kern.maxfilesperproc: 5898 > kern.maxusers: 384 > > My /boot/loader.conf looks like: > kern.maxfiles="65536" > kern.ipc.nmbclusters=64000 > kern.ipc.nmbufs=256000 > kern.maxproc=8192 > kern.ipc.somaxconn=4096 > > So i do not get it, imho the configuration is just fine, but why do i get > the message "too many files open..."? I think there is a separate limit for sockets, which you may be hitting. Check with "sysctl kern.ipc | grep socket". $.02, /Mikko