--T4sUOijqQbZv57TR
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Oct 07, 2002 at 04:17:26PM +0200, Fred spake thus:
> Hi,
>=20
> It 's the third time my debian is complaining, just
> after booting, with a "too many open files", creating
> each time many files in my home directory I log to.
> Searching in Google, some files in /proc/sys/fs enable
> to change this behaviour.
>=20
> -Why do I have this message ? : just after logging, I'm
> surprised there are so many open files ( file-max reports
> 8192 ) : apache, ftp server, exim, fetchmail, samba and=20
> classic services are the main things that are running.
>=20
> -How do I solve this ? Echoing a different max number ?
> is it a definitive solution (how about the next boot) ?
>=20
>=20
> thanks
>=20
> Fred

Hi Fred,

I ran into this limit, too; to increase the default limit, I added the
following script to my machine as /etc/init.d/setmaxfiles.sh:

----------------------------8<-----------------------------

#! /bin/sh
# Prevents kernel error message 'Too many open files' due to
# the 8096 default. For more info, see:
#     http://sdb.suse.de/en/sdb/html/jreuter_imap_filemax.html
#     http://www.patoche.org/LTT/kernel/00000128.html
    =20

echo "65536"  >/proc/sys/fs/file-max

# This one for 2.2.x kernels only --> not for 2.4.x kernels:
#echo "131072" >/proc/sys/fs/inode-max

----------------------------8<-----------------------------

I have a symlink to this set up like so:

    $ cd /etc/rcS.d
    $ ls -l | grep setmax
    lrwxrwxrwx    1 root     root           26 Aug  1 23:30 S37setmaxfiles.=
sh -> /etc/init.d/setmaxfiles.sh

With the above in place, the default is increased when the system boots
up. Of course, it's safe to just run this from the command line on a
running system, too; the limit is increased immediately.

HTH,
-Al

--=20
a l a n   d.   s a l e w s k i             [EMAIL PROTECTED]
--------------------------------------------------------------------
   We have introduced a formidable cross-platform 32-bit suite.
--------------------------------------------------------------------
Generated from WWW Marketing Phrase gizmo:   www.lyra.org/phrase.cgi

--T4sUOijqQbZv57TR
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9omsLfJJcs/osNYgRAm3fAKCSvDDYZwxXdWggkprcX+qzEhB5DACffLFj
oCLvLGiEduhvMLLOtsEoCg8=
=py9D
-----END PGP SIGNATURE-----

--T4sUOijqQbZv57TR--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to