SUMMARY: Too many open files

From: Rubens Mau (rmaster@dialdata.com.br)
Date: Thu Jul 04 1996 - 11:07:10 CDT


I had a problem with my DNS. When restarting it I got the message "Too many
open files".
Upgrading named to the newest version didn't help. To prevent this problem,
before restarting named you must give the command

# limit descriptors 128

Thanks for :

Matthew.Stier@imonics.com
Fuad Khalid <fmrco!lagoon!fuad@uunet.uu.net>
"Coffindaffer, Virginia" <C80005LQ@wangfed.com>

Fuad Kahlid send me also this information:

Here is a faq and I think for you situation try changing maxuser which is
set in the /etc/systems files.Number of file open is directly propotional
to maxusers. Do a boot -r. Also he is the faq :
Too many open files
===================

A process has too many files open at once. The system imposes a
per-process soft limit on open files, OPEN_MAX (usually 64),
which can be increased, and a per-process hard limit (usually
1024), which cannot be increased.

You can control the soft limit from the shell. In the C shell,
use the limit command to increase the number of descriptors. In
the Bourne or Korn shells, use the ulimit command with the -n
option to increase the number of file descriptors.

If the window system refuses to start new applications because of
this error, increase the open file limit in your login shell
before starting the window system.

The symbolic name for this error is EMFILE, errno=24.
----------------------------------------------------------------------------
---------------------------

My original question was :

>I have a problem with my bind ( original from sun, yet ). I have a set of
named files that works fine. But, if I add more lines in my named.root file
, named stops working properly, and I get the message :
>
>Jun 26 08:56:48 tiger named[116]: accept: Too many open files
>
>and other lines, one for each named record.
>
>
>When this happens, If I kill in.named and return to my original files, I
get the same problem. Only rebooting the machine named is restarted.
>
>I checked the inodes numbers, and they are fine.
>I have a Solaris 2.4 sparc20 machine.
--------------------------------------------------------------------------------
Rubens Mau - DIALDATA rmaster@dialdata.com.br
Sao Paulo, Brazil http://www.dialdata.com.br
phone: 55-11-8294731

Status: RO



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:04 CDT