Chapter 6. Tuning resource limits Directory Server provides several settings to tune the amount of resources an instance uses. You can change them using the command line or the web console. 6.1. Updating resource limit settings using the command line This section provides a general procedure how to change resource limit settings. Adjust the settings according to your environment. Procedure Update the performance settings: # dsconf -D " cn=Directory Manager " ldap://server.example.com config replace parameter_name = value You can set the following parameters: nsslapd-threadnumber : Sets the number of worker threads. nsslapd-maxdescriptors : Sets the maximum number of file descriptors. nsslapd-timelimit : Sets the search time limit. nsslapd-sizelimit : Sets the search size limit. nsslapd-pagedsizelimit : Sets the paged search size limit. nsslapd-idletimeout : Sets the idle connection timeout. nsslapd-ioblocktimeout : Sets the input/output (I/O) block timeout. nsslapd-ndn-cache-enabled : Enables or disables the normalized DN cache. nsslapd-ndn-cache-max-size : Sets the normalized DN cache size, if nsslapd-ndn-cache-enabled is enabled. nsslapd-outbound-ldap-io-timeout : Sets the outbound I/O timeout. nsslapd-maxbersize : Sets the maximum Basic Encoding Rules (BER) size. nsslapd-maxsasliosize : Sets the maximum Simple Authentication and Security Layer (SASL) I/O size. nsslapd-listen-backlog-size : Sets the maximum number of sockets available to receive incoming connections. nsslapd-max-filter-nest-level : Sets the maximum nested filter level. nsslapd-ignore-virtual-attrs : Enables or disables virtual attribute lookups. nsslapd-connection-nocanon : Enables or disables reverse DNS lookups. nsslapd-enable-turbo-mode : Enables or disables the turbo mode feature. For further details, see the descriptions of the parameters in the Configuration and schema reference Restart the instance: # dsctl instance_name restart 6.2. Updating resource limit settings using the web console This section provides a general procedure how to change resource limit settings. Adjust the settings according to your environment. Prerequisites You are logged in to the instance in the web console. Procedure Navigate to Server Tuning & Limits . Update the settings. Optionally, click Show Advanced Settings to display all settings. Click Save Settings . Click Actions Restart Instance . 6.3. Disabling the Transparent Huge Pages feature Transparent Huge Pages (THP) is the memory management feature in Linux that speeds up Translation Lookaside Buffer (TLB) checks on machines with large amounts of memory by using larger memory pages. The THP feature is enabled by default on RHEL systems and supports 2 MB memory pages. The THP feature, however, works best when enabled on large, contiguous allocation patterns and can degrade performance on small, sparse allocation patterns that are typical to the Red Hat Directory Server. The resident memory size of the process might eventually exceed the limit and impact performance or get terminated by the out of memory (OOM) killer. Important To avoid performance and memory consumption problems, disable THP on RHEL systems with Red Hat Directory Server installed. Procedure Check the current status of THP: If the transparent huge pages feature is active, disable it either at boot time or run time: Disable the transparent huge pages at boot time by appending the following to the kernel command line in the grub.conf file: Disable transparent huge pages at run time by running the following commands: Additional resources The negative effects of Transparent Huge Pages (THP) on RHDS Configuring Transparent Huge Pages in RHEL 7 .

Commands:
dsconf -D " cn=Directory Manager " ldap://server.example.com config replace parameter_name = value
dsctl instance_name restart
cat /sys/kernel/mm/transparent_hugepage/enabled
transparent_hugepage=never
echo never > /sys/kernel/mm/transparent_hugepage/enabled echo never > /sys/kernel/mm/transparent_hugepage/defrag