6886N/A<?xml version="1.0" encoding="UTF-8"?>
6886N/A<!--
6886N/A ! CCPL HEADER START
6886N/A !
6886N/A ! This work is licensed under the Creative Commons
6886N/A ! Attribution-NonCommercial-NoDerivs 3.0 Unported License.
6886N/A ! To view a copy of this license, visit
6886N/A ! http://creativecommons.org/licenses/by-nc-nd/3.0/
6886N/A ! or send a letter to Creative Commons, 444 Castro Street,
6886N/A ! Suite 900, Mountain View, California, 94041, USA.
6886N/A !
6886N/A ! You can also obtain a copy of the license at
6886N/A ! trunk/opendj3/legal-notices/CC-BY-NC-ND.txt.
6886N/A ! See the License for the specific language governing permissions
6886N/A ! and limitations under the License.
6886N/A !
6886N/A ! If applicable, add the following below this CCPL HEADER, with the fields
6886N/A ! enclosed by brackets "[]" replaced with your own identifying information:
6886N/A ! Portions Copyright [yyyy] [name of copyright owner]
6886N/A !
6886N/A ! CCPL HEADER END
6886N/A !
6886N/A ! Copyright 2011-2013 ForgeRock AS
6886N/A !
6886N/A-->
6886N/A<section xml:id="prerequisites-file-descriptors"
6886N/A xmlns='http://docbook.org/ns/docbook' version='5.0' xml:lang='en'
6886N/A xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
6886N/A xsi:schemaLocation='http://docbook.org/ns/docbook
6886N/A http://docbook.org/xml/5.0/xsd/docbook.xsd'>
6886N/A <title>Maximum Open Files</title>
6886N/A
6886N/A <indexterm>
6886N/A <primary>File descriptors</primary>
6886N/A <secondary>Requirements</secondary>
6886N/A </indexterm>
6886N/A
6886N/A <para>
6886N/A OpenDJ needs to be able to open many file descriptors,
6886N/A especially when handling thousands of client connections.
6886N/A
6886N/A Linux systems in particular often set a limit of 1024 per user,
6886N/A which is too low to handle many client connections to OpenDJ.
6886N/A </para>
6886N/A
6886N/A <para>
6886N/A When setting up OpenDJ for production use,
6886N/A make sure OpenDJ can use at least 64K (65536) file descriptors.
6886N/A
6886N/A For example when running OpenDJ as user <literal>opendj</literal>
6886N/A on a Linux system that uses
6886N/A <filename>/etc/security/limits.conf</filename> to set user level limits,
6886N/A you can set soft and hard limits by adding these lines to the file:
6886N/A </para>
6886N/A
6886N/A <programlisting language="none">opendj soft nofile 65536
6886N/Aopendj hard nofile 131072</programlisting>
6886N/A
6886N/A <para>
6886N/A The example above assumes the system has
6886N/A enough file descriptors available overall.
6886N/A
6886N/A You can check the Linux system overall maximum as follows.
6886N/A </para>
6886N/A
6886N/A <screen>$ cat /proc/sys/fs/file-max
6886N/A204252</screen>
6886N/A</section>