PingAccess

Increasing file descriptor limits (systemd)

Increase file descriptor limits in a systemd environment to enable PingAccess to handle a high volume of concurrent requests.

Steps

  1. Edit the /etc/systemd/system/pingaccess.service file.

  2. 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.

    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.

  3. Run the following command as root:

    systemctl daemon-reload
  4. Restart the PingAccess service.