Show Table of Contents
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:
- Set the number of threads:
# ldapmodify -D "cn=Directory Manager" -W -x dn: cn=config changetype: modify replace: nsslapd-threadnumber nsslapd-threadnumber: 64
- Restart the Directory Server instance:
# systemctl start dirsrv@instance_name
Note
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”.