From owner-freebsd-questions@FreeBSD.ORG Mon Oct 27 05:55:32 2003 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 AFE4D16A4BF for ; Mon, 27 Oct 2003 05:55:32 -0800 (PST) Received: from ns1.cerner.com (ns1.cerner.com [159.140.254.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6B18443FDF for ; Mon, 27 Oct 2003 05:55:31 -0800 (PST) (envelope-from DWOOLWORTH@CERNER.COM) Received: from mailscan02 (ao.cerner.com [159.140.254.10]) by ns1.cerner.com (smtp) with ESMTP id h9RDtU909201 for ; Mon, 27 Oct 2003 07:55:30 -0600 Received: from msbhwhq00.cerner.com ([10.160.12.103]) by 10.160.12.27 with InterScan Messaging Security Suite; Mon, 27 Oct 2003 07:55:25 -0600 Received: by msbhwhq00.cerner.com with Internet Mail Service (5.5.2655.55) id <4JRQB7VH>; Mon, 27 Oct 2003 07:55:24 -0600 Message-ID: From: "Woolworth,Derrick" To: "'freebsd-questions@freebsd.org'" Date: Mon, 27 Oct 2003 07:55:23 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2655.55) Content-Type: text/plain; charset="iso-8859-1" Subject: Open Files 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: Mon, 27 Oct 2003 13:55:32 -0000 Hello all, I am having difficulty with one system - FreeBSD 4.8 After a couple of days, the system continually reports that there are too many files open. At that time I cannot ssh into the system or ftp, etc. obviously, the kern.maxfiles is too low. However, I have continually increased the number of max files - actually both: kern.maxfiles = 65535 kern.maxfilesperproc = 65535 The system is running 141 processes on average, which isn't terrible in my opinion. Most of these are Apache 1.3.27, MySQL 4.1.0-alpha, Courier mail system, and a couple of applications my firm has written ourselves. The question is really, is there a way to examine how many files are open on a per process basis? I know we can monitor the number of open files with pstat -T, but this doesn't help us troubleshoot which application is responsible for this large number of open files. The processes that we are building are daemons that are pre-forked - none seem to be crashing, and we've checked the open/close calls as closely as possible. Also, does anyone know of a bug in MySQL or mod_php4 (4.3.4.r1) or Courier 0.43.0 that would cause files to be opened and not closed? Thanks, D CONFIDENTIALITY NOTICE This message and any included attachments are from Cerner Corporation and are intended only for the addressee. The information contained in this message is confidential and may constitute inside or non-public information under international, federal, or state securities laws. Unauthorized forwarding, printing, copying, distribution, or use of such information is strictly prohibited and may be unlawful. If you are not the addressee, please promptly delete this message and notify the sender of the delivery error by e-mail or you may call Cerner's corporate offices in Kansas City, Missouri, U.S.A at (+1) (816)221-1024. ---------------------------------------- --