The Handbook has a tutorial on how to fix file: table is full messages.

Remove from here, put pointers to Handbook.
This commit is contained in:
Michael Lucas 2002-01-23 12:03:41 +00:00
parent 496155b89f
commit d0c871ac0a
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=11846

View file

@ -4422,33 +4422,14 @@ IO range check 0x00 activate 0x01</screen>
</question>
<answer>
<para>
This error is caused when you have exhausted the number of
available file descriptors on your system. The file table in
memory is full.
</para>
<para>The solution:</para>
<para>
Manually adjust the <varname>kern.maxfiles</varname> kernel limit
setting.
</para>
<screen>&prompt.root; <userinput>sysctl -w kern.maxfiles=n</userinput></screen>
<para>Adjust <varname>n</varname> according to your system needs.
Each open file, socket, or fifo uses one file descriptor.
A large-scale server may easily require tens of thousands of
file descriptors (10,000+), depending on the kind and number
of services running concurrently.</para>
<para>The number of default file descriptors set in the kernel is
dictated by the</para>
<programlisting>maxusers 32</programlisting>
<para><varname>maxusers</varname> line in your kernel
config file. Increasing this will proportionally increase
<varname>kern.maxfiles</varname>.
</para>
<para>You can see what <varname>kern.maxfiles</varname> is
currently set to by:
</para>
<screen>&prompt.root; <userinput>sysctl kern.maxfiles</userinput>
kern.maxfiles: 1064</screen>
This error message indicates you have exhausted the number
of available file descriptors on your system. Please see
the <ulink
url="../handbook/configtuning-kernel-limits.html#KERN-MAXFILES">kern.maxfiles
</ulink>section of the <ulink
url="../handbook/configtuning-kernel-limits.html">Tuning
Kernel Limits</ulink> section of the Handbook for a
discussion and solution.</para>
</answer>
</qandaentry>