# Increase Max Open Files Limit

### File Handles

Linux processes are limited to 1024 open file handles by default. Bindplane's file handles consist of network connections and open files.

You can use the following calculation to determine the estimated number of open file handles by Bindplane: `500 + (2 * Number of collectors)`. For example, if you have 200 collectors, you can expect to see up to 900 file handles.

The number of file handles will differ between Bindplane configurations. For example, when using PostgreSQL as a storage backend, Bindplane will use up to 100 network connections by default. When using Bolt Store, Bindplane will consume one file handle.

Using 500 file handles as a base allows the calculation to account for all Bindplane configurations.

### Configure Max File Handles

Bindplane relies on the systemd option `LimitNOFILE` to limit the maximum number of open files. By default, this value is `55000`.

You can configure the max open files by using a [Systemd override](https://wiki.archlinux.org/title/systemd). Run the following command:

```bash
sudo systemctl edit bindplane
```

Modify the unit file's override to look like this:

<figure><img src="/files/3DrDrVsYpnRDzGMqDFDI" alt="Bindplane docs - Increase Max Open Files Limit - image 1"><figcaption></figcaption></figure>

After saving the file, you can reload systemd and restart Bindplane.

```bash
sudo systemctl daemon-reload
sudo systemctl restart bindplane
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.bindplane.com/configuration/bindplane/increase-max-open-files-limit.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
