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.
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 the number of threads. For details about using the optimized and automatic setting, see Section 7.1, “Automatic Thread Tuning”.
7.2.1. Manually Setting the Number of Threads Using the Command Line
To manually set the number of threads using the command line:
- Set the number of threads:
# dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-threadnumber="64"
This command sets the number of threads to64
. - Restart the Directory Server instance:
# dsctl instance_name restart
7.2.2. Manually Setting the Number of Threads Using the Web Console
To manually set the number of threads using the Web Console:
- Open the Directory Server user interface in the web console. For details, see Logging Into Directory Server Using the Web Console section in the Red Hat Directory Server Administration Guide.
- Select the instance.
- Open the Tuning & Limits.menu, and select
- Set the Number Of Worker Threads field to the number of threads.
- Click.
- Click the Restart Instance.button, and select