From owner-freebsd-questions@FreeBSD.ORG Tue Apr 14 14:31:39 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 51ED4106566B for ; Tue, 14 Apr 2009 14:31:39 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from s2m-is-001.service2media.com (rev-130-102.virtu.nl [217.114.102.130]) by mx1.freebsd.org (Postfix) with ESMTP id D54B28FC14 for ; Tue, 14 Apr 2009 14:31:38 +0000 (UTC) (envelope-from pieter@degoeje.nl) Received: from nox-laptop.localnet ([10.0.1.45] RDNS failed) by s2m-is-001.service2media.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 14 Apr 2009 16:18:21 +0200 From: Pieter de Goeje To: freebsd-questions@freebsd.org Date: Tue, 14 Apr 2009 16:18:20 +0200 User-Agent: KMail/1.11.0 (Linux/2.6.27-14-generic; KDE/4.2.0; x86_64; ; ) References: <2cd0a0da0904140511y53fe5da6tc1aaea76bc712d30@mail.gmail.com> In-Reply-To: <2cd0a0da0904140511y53fe5da6tc1aaea76bc712d30@mail.gmail.com> MIME-Version: 1.0 Message-Id: <200904141618.20480.pieter@degoeje.nl> X-OriginalArrivalTime: 14 Apr 2009 14:18:21.0244 (UTC) FILETIME=[DD55AFC0:01C9BD0B] Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: VeeJay Subject: Re: kern.maxfiles limit exceeded by uid 1003? what to do? 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: Tue, 14 Apr 2009 14:31:40 -0000 On Tuesday 14 April 2009 14:11:02 VeeJay wrote: > Hi there > > I am keep getting this error on the screen. I have tried to solve this > problem by myself but still no luck. Could anyone guide what to do to > increase the limit and avoid this error? > > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > Apr 14 11:08:08 server2 postfix/pickup[25022] : fatal : kqueue : Too many > files open in the system > Apr 14 11:08:08 server2 postfix/pickup[25023] : fatal : kqueue : Too many > files open in the system > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > kern.maxfiles limit exceeded by uid 1003, please see tuning(7) > > When this happens, I am unable to login on the server by consol or ssh. what > to do? And I have to restart the server manually.... by on/off switch... Check kern.openfiles sysctl to see if it is close to kern.maxfiles. Tune kern.maxfiles and kern.maxfilesperproc (use bigger numbers). kern.maxfiles: Maximum number of files kern.maxfilesperproc: Maximum files allowed open per process kern.openfiles: System-wide number of open files HTH, Pieter de Goeje