> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wandb.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# OS errors - Too many open files

## `[Errno 24]: Too many open files`

This error occurs when the number of open files exceeds the limit set by your operating system. In Weave, this can happen because you're working with large image datasets. Weave uses `PIL` for image processing, which keeps file descriptors open while the program runs.

To resolve this issue, increase the system limit for open files to `65536` using `ulimit`:

```bash theme={null}
ulimit -n 65536
```

***

<Badge stroke shape="pill" color="orange" size="md">[Performance](/support/weave/tags/performance)</Badge>
