From owner-freebsd-questions Mon Jan 28 14:51:31 2002 Delivered-To: freebsd-questions@freebsd.org Received: from tomts17-srv.bellnexxia.net (tomts17.bellnexxia.net [209.226.175.71]) by hub.freebsd.org (Postfix) with ESMTP id DE5CF37B41B for ; Mon, 28 Jan 2002 14:51:17 -0800 (PST) Received: from xena.gsicomp.on.ca ([199.243.128.21]) by tomts17-srv.bellnexxia.net (InterMail vM.4.01.03.16 201-229-121-116-20010115) with ESMTP id <20020128225117.SPTV16289.tomts17-srv.bellnexxia.net@xena.gsicomp.on.ca>; Mon, 28 Jan 2002 17:51:17 -0500 Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.11.1/8.11.1) with SMTP id g0SMfFX47200; Mon, 28 Jan 2002 17:41:16 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <012301c1a84e$4b08fc00$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: "Eugen Luca" Cc: References: <016401c1a84d$a2950d70$cc0fb7d8@admin> Subject: Re: System goes down Date: Mon, 28 Jan 2002 17:51:14 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Eugen, There is an easier way. All you need to do is increase the 'kern.maxfiles' sysctl. To view the current setting: gabby# sysctl kern.maxfiles kern.maxfiles: 1064 To change the current setting: gabby# sysctl -w kern.maxfiles=2000 kern.maxfiles: 1064 -> 2000 gabby# sysctl kern.maxfiles kern.maxfiles: 2000 gabby# To make this change permanent (across reboots), edit the /etc/sysctl.conf file and add the line "kern.maxfiles=2000" to it. (Change 2000 to a value appropriate to your machine, of course.) You may also need to change kern.maxfilesperproc if you are opening a log of sockets/files/pipes from your Apache processes. (This may occur if you're using mod_perl or mod_php and are doing heavy CGI work.) -- Matt Emmerton (matt@gsicomp.on.ca) GSI Computer Services Toronto (Don Mills), ON ----- Original Message ----- From: "Eugen Luca" To: Sent: Monday, January 28, 2002 5:46 PM Subject: System goes down My system goes down, I got this errors in the messages log file: Jan 26 19:21:24 them /kernel: pid 75587 (httpd), uid 65534: exited on signal 11 Jan 26 19:21:24 them syslogd: /dev/console: Too many open files in system: Too many open files in system Jan 26 19:21:24 them syslogd: /var/run/utmp: Too many open files in system Jan 26 19:21:24 them last message repeated 3 times Jan 26 19:21:24 them /kernel: file: table is full Jan 26 19:21:25 them last message repeated 85 times I read found somewhere that is suggested to increasing PMAP_SHPGPERPROC, but I don't now how much to increase that. I somebody can help me I will really appreciate. Eugen Luca Network Administrator Cybernet Comunication Inc. 20 Amber St., Markham, ON Canada L3R5P4 ( Phone: 416-410-2180 ext. 213 (Fax: 905-947-1802 *Email: eluca@mycybernet.net Website: http://www.mycybernet.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message