Xray File Handle Allocation Limit

Set Xray file handles to 100,000 in /etc/security/limits.conf for the xray and postgres users.

Use the following command to determine the current file handle allocation limit.

cat /proc/sys/fs/file-max

Set the following parameters in your /etc/security/limits.conf file to the lower of 100,000 or the file handle allocation limit determined above.

The example below sets the relevant parameters to 100000. The actual value for your installation may differ based on the file handle allocation limit on your system.

root hard nofile 100000
root soft nofile 100000
xray hard nofile 100000
xray soft nofile 100000
postgres hard nofile 100000
postgres soft nofile 100000