---
updatedAt: 2026-05-21T09:14:56.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/installation/llms.txt
---

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

```bash
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.

```properties
root hard nofile 100000
root soft nofile 100000
xray hard nofile 100000
xray soft nofile 100000
postgres hard nofile 100000
postgres soft nofile 100000
```

## Related Topics

* [Xray System Requirements and Platform Support](xray-system-requirements-and-platform-support)
* [General System Requirements](general-system-requirements)
* [Xray Storage Recommendations](xray-storage-recommendations_xray-system-requirements-and-platform-support)
* [Database and Third-Party Applications in Xray](database-and-third-party-applications-in-xray_xray-system-requirements-and-platform-support)
* [Preflight Check](preflight-check)