6.7. Adjusting the maximum number of file descriptors
The nsslapd-maxdescriptors
attribute sets the maximum, platform-dependent number of file descriptors that the Directory Server uses. File descriptors are used for client connections, log files, sockets, and other resources.
If you set the nsslapd-maxdescriptors
value higher than the total number of file descriptors that the operating system allows the ns-slapd
process to use, the Directory Server queries the operating system for the maximum allowable value, and then uses that value.
Default value |
|
Valid range |
|
Entry DN location |
|
Conditions préalables
- Le mot de passe du gestionnaire de répertoire LDAP
Procédure
Retrieve the current value of the
nsslapd-maxdescriptors
parameter and make a note of it before making any adjustments, in case it needs to be restored. Enter the Directory Manager password when prompted.[root@server ~]# dsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-maxdescriptors Enter password for cn=Directory Manager on ldap://server.example.com: nsslapd-maxdescriptors: 4096
Modify the value of the
nsslapd-maxdescriptors
attribute. This example increases the value to8192
.[root@server ~]# dsconf -D "cn=Directory Manager" ldap://server.example.com config replace nsslapd-maxdescriptors=8192
Authenticate as the Directory Manager to make the configuration change.
Enter password for cn=Directory Manager on ldap://server.example.com: Successfully replaced "nsslapd-maxdescriptors"
-
Monitor the IdM directory server’s performance. If it does not change in a desirable way, repeat this procedure and adjust
nsslapd-maxdescriptors
to a different value, or back to the default of4096
.
Verification steps
Display the value of the
nsslapd-maxdescriptors
attribute and verify it has been set to your desired value.[root@server ~]# dsconf -D "cn=Directory Manager" ldap://server.example.com config get nsslapd-maxdescriptors Enter password for cn=Directory Manager on ldap://server.example.com: nsslapd-maxdescriptors: 8192
Ressources supplémentaires
- nsslapd-maxdescriptors (Maximum File Descriptors) in Directory Server 11 documentation