Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Dec 2006 00:56:28 -0800
From:      Garrett Cooper <youshi10@u.washington.edu>
To:        freebsd-questions@freebsd.org
Subject:   Re: Server Problem
Message-ID:  <4587A93C.5010901@u.washington.edu>
In-Reply-To: <200612182208.54073.freebsd@dfwlp.com>
References:  <212869.41963.qm@web37009.mail.mud.yahoo.com> <200612182208.54073.freebsd@dfwlp.com>

next in thread | previous in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Horne wrote:
> On Monday 18 December 2006 16:51, ossama abdel-haleem wrote:
>> Dear Sir,
>>   I have HP Proliant ML 370 G4 server with dual Processors 3.6 intel xeon
>> and HP Smart RAID controller (Config=>RAID5) (146GB * 6) + (4 GB Of RAM.)
>> The server working as application server (Tailored Software) based on
>> POSTGRESQL server. I installed the FreeBSD 6.1 to serve 100 users with the
>> application so - after period of time I found an error message appeared on
>> the server : Kern. Maxfiles Limit Exceeded By UID 1001, Please See Tuning
>> (7).
>>
>>   What is the problem? Can You Help Me because after this message appears
>> the server activities down.
>>
>>   Thanks
>>   Ossama Abdel Haleem
> 
> i think you must be referring to.  on my system, the default setting can be 
> seen, like this:
> 
> [jhorne@athena ~]$ sysctl -a|grep kern.maxfiles
> kern.maxfiles: 12328
> 
> in order to raise this, a line would be added to /boot/loader.conf, like this:
> kern.maxfiles=24576
> 
> hth,
> jonathan

Either that, or if someone has too many files open they need to be
limited. login.conf(5) provides more information about that, along with
limits(1) and tuning(7), and the handbook chapter:
<http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/configtuning-kernel-limits.html>.

That value is a bit low though, and you should be safe in doubling or
quadrupling it.

- -Garrett
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFFh6k7EnKyINQw/HARAqcrAJ90A7E86K81BN1glF2tSny7FcugKgCgnn3z
cnGFhSGrNCEdrMPFCezN4kA=
=PgHo
-----END PGP SIGNATURE-----



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4587A93C.5010901>