-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: running chromadb/chroma container in docker - RAM memory of container grows endlessly while quering collection #1908
Comments
@pilotofbalance, thank you for reporting this. I do not claim to know how your tests are set up, but generally, if the test(s) create and insert data throughout the test run, memory is expected to grow. Do you have any pre/post-test clean-up? Is there any way that this can be reproduced? |
@tazarov
In general you don't have to reproduce exact my case, just load vectors, even random, and run query. |
I seem to have the same problem in a Python virtual environment. |
I had the same problem. I had to restart docker every two or three days, otherwise it would fill up the server's memory. 0.5.4.dev33 |
I had the same problem too. because of this problem, it cannot be used in a production environment... |
@xiel0325 @liuhetian, the issue you are facing was due to a connection leak that leaked FDs that, over time, grew quite a bit. This problem was discovered a while ago in #1379, but was only fixed about two weeks ago with #2014. The fix has not yet made it to an official release, but you can use the latest from |
What happened?
I'm running chroma in docker, with their chromadb/chroma official image.
I'm ingesting only embeddings and indexes to the collection.
Then I'm using k6 to make some load tests and run queries against this collection. (k6 scenario:
"loadTest": { "executor": "shared-iterations", "iterations": 200, "vus": 100 }
)In docker stats there is a constant grow of memory while running a tests and it's not released at the end of tests for some reason, moreover if I'm running load test again, memory continue to grow...this happen till it reach container memory limit and crushes.
Versions
chroma 0.4.24
Relevant log output
No response
The text was updated successfully, but these errors were encountered: