Increase file descriptor limits in a systemd environment to enable PingAccess to handle a high volume of concurrent requests.
- Edit the /etc/systemd/system/pingaccess.service file.
-
Modify the following line under the
[Service]
section:LimitNOFILE=<value>
<value> is the new value. The default value of 65536 (64K) should be sufficient for most environments.
Note:The number of open file descriptors is limited by the physical memory available to the host. You can determine this limit with the following command:
cat /proc/sys/fs/file-max
If the file-max value is significantly higher than the 65536 limit, consider increasing the file descriptor limit to between 10% and 15% of the system-wide file descriptor limit. For example, if the file-max value is 810752, you can set the file descriptor limit to 100000. If the file-max value is lower than 65536, the host is likely not sized appropriately for PingAccess.
-
Run the following command as root:
systemctl daemon-reload
- Restart the PingAccess service.