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:
  1. 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 to 64.
  2. 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:
  1. 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.
  2. Select the instance.
  3. Open the Server Settings menu, and select Tuning & Limits.
  4. Set the Number Of Worker Threads field to the number of threads.
  5. Click Save.
  6. Click the Actions button, and select Restart Instance.