Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Jan 2002 17:51:14 -0500
From:      "Matthew Emmerton" <matt@gsicomp.on.ca>
To:        "Eugen Luca" <eluca@mycybernet.net>
Cc:        <freebsd-questions@freebsd.org>
Subject:   Re: System goes down
Message-ID:  <012301c1a84e$4b08fc00$1200a8c0@gsicomp.on.ca>
References:  <016401c1a84d$a2950d70$cc0fb7d8@admin>

next in thread | previous in thread | raw e-mail | index | archive | help
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" <eluca@mycybernet.net>
To: <freebsd-questions@FreeBSD.ORG>
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?012301c1a84e$4b08fc00$1200a8c0>