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> </question>
<answer> <answer>
<para> <para>
This error is caused when you have exhausted the number of This error message indicates you have exhausted the number
available file descriptors on your system. The file table in of available file descriptors on your system. Please see
memory is full. the <ulink
</para> url="../handbook/configtuning-kernel-limits.html#KERN-MAXFILES">kern.maxfiles
<para>The solution:</para> </ulink>section of the <ulink
<para> url="../handbook/configtuning-kernel-limits.html">Tuning
Manually adjust the <varname>kern.maxfiles</varname> kernel limit Kernel Limits</ulink> section of the Handbook for a
setting. discussion and solution.</para>
</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>
</answer> </answer>
</qandaentry> </qandaentry>