Red Hat Training

A Red Hat training course is available for Red Hat Directory Server

7.2. Manually Setting the Number of Thread

In certain situations, it can be necessary to manually set a fixed number of Directory Server threads instead of using the automatic thread tuning. For example, to set 64 threads:
  1. Set the number of threads:
    # ldapmodify -D "cn=Directory Manager" -W -x
    dn: cn=config
    changetype: modify
    replace: nsslapd-threadnumber
    nsslapd-threadnumber: 64
  2. Restart the Directory Server instance:
    # systemctl start dirsrv@instance_name


If the number of hardware threads changes, for example, because you increased the CPU cores of the virtual machine that runs the Directory Server instance, you must manually update this setting. To use the optimized and automatic setting, see Section 7.1, “Enabling Automatic Thread Tuning”.