Operating system default file descriptor limitsrestrict the number of PingDirectory Server connections. Change the descriptor limits to allow more connections.
The Directory Server allows for an unlimited number of connections by default, but the file descriptor limit on the operating system restrict the number of connections. Many Linux distributions have a default file descriptor limit of 1024 per process, which might be too low for the server if it needs to handle a large number of concurrent connections.
If the operating system relies on systemd
, see the Linux operating
system documentation for instructions on setting the file descriptor limit.
After you set the operating system limit, you can configure the number of file descriptors that the server will use either by using a NUM_FILE_DESCRIPTORS environment variable, or by creating a config/num-file-descriptors file with a single line such as NUM_FILE_DESCRIPTORS=12345. If these are not set, the operating system uses the default of 65535 descriptors. This is an optional change you can make if you want to ensure that the server shuts down safely prior to reaching the file descriptor limit.
For RedHat 7 or later, modify the 20-nproc.conf file to set both the open files and max user processes limits.
/etc/security/limits.d/20-nproc.conf
Add or edit the following lines if they do not already exist:
* soft nproc 65536
* soft nofile 65536
* hard nproc 65536
* hard nofile 65536
root soft nproc unlimited