From owner-freebsd-questions Sat Oct 21 14:22:42 2000 Delivered-To: freebsd-questions@freebsd.org Received: from soup.thpoon.com (cr103675-a.bloor1.on.wave.home.com [24.114.152.71]) by hub.freebsd.org (Postfix) with SMTP id 633B337B479 for ; Sat, 21 Oct 2000 14:22:40 -0700 (PDT) Received: (qmail 17194 invoked from network); 21 Oct 2000 21:22:39 -0000 Received: from unknown (HELO tea.thpoon.com) (mail@192.168.1.2) by cr103675-a.bloor1.on.wave.home.com with SMTP; 21 Oct 2000 21:22:39 -0000 Received: from antipode by tea.thpoon.com with local (Exim 3.12 #1 (Debian)) id 13n66A-0001dH-00 for ; Sat, 21 Oct 2000 17:22:38 -0400 To: freebsd-questions@FreeBSD.ORG Subject: Too many open files in system From: Arcady Genkin X-Face: 0=A/O5-+sE[Tf%X>rYr?Y5LD4,:^'jaJ!4jC&UR*ZrrK2>^`g22Qeb]!:d;}2YJ|Hq"LHdF OX`jWX|AT-WVFQ(TPhFVak)0nt$aEdlOq=1~D,:\z5QlVOrZ2(H,mKg=Xr|'VlHA="r Organization: thpoon.com Mail-Copies-To: never Date: 21 Oct 2000 17:22:38 -0400 Message-ID: <87wvf1c2jl.fsf@tea.thpoon.com> Lines: 30 User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.1 (Channel Islands) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Today I got quite a scare. At 16:50 I couldn't do almost anything, getting an error message about too many open files in system. At about 17:00 all came back to normal. I did `lsof' then, and it reported 913 open files, about a third of them belonging to apache/postgresql. After restart of apache, the number went down to 730. The system log contains: ,---- | Oct 21 16:50:26 soup syslogd: /dev/console: Too many open files in \ | system: Too many open files in system | Oct 21 16:50:26 soup syslogd: /var/run/utmp: Too many open files in system | Oct 21 16:50:26 soup syslogd: /var/run/utmp: Too many open files in system | Oct 21 16:50:26 soup /kernel: file: table is full `---- What could have caused this? The box runs 4.1-S, and the main services are apache/mod_php4, postgresql, and a UW IMAP server (private: not a busy one). No X. Could this have been an external attack? If there is a limit on the number of open files somewhere in the kernel, is it raisable? Many thanks, -- Arcady Genkin Don't read everything you believe. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message