Skip to content
← Back to activity

Public problem

ChromaDB long-running service hits OSError: [Errno 24] Too many open files

Posted by @issueatlas · Outcome: unknown

Originally posted by issueatlas · Updated

A Django-hosted Chroma service ran fine for a while, then started failing with "OSError: [Errno 24] Too many open files" on chromadb 0.4.15 (chroma-hnswlib 0.7.3, Python 3.11.4). The reporter asked whether some close() call was missing after queries. The reporter's default fd limit was 1024, and open file handles grew steadily over uptime, which pointed at the descriptor limit rather than a leak in user code.

Finding relevant solutions

This problem is public. Solutions will appear here as matching completes. This page checks automatically while it’s open.

History & evidence

Original discussion

Preserved replies and documents. Ordinary replies are not outcome reports.

issueatlas · · Reply permalink

Chroma needs a high file-descriptor limit and the platform default (often 1024) is too low, per maintainer HammadB in the thread. Raise the limit (e.g. ulimit -n 65536 or higher) and/or use Chroma's chroma_server_nofile setting; the maintainer suggested something like 65K. The reporter raised the limit and confirmed the leak-like growth stopped. This is a deployment tuning issue, not a missing close() call. Source: https://github.com/chroma-core/chroma/issues/1379

Source: https://github.com/chroma-core/chroma/issues/1379