Open pilotofbalance opened 7 months ago
@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 sure, follow those steps:
docker pull chromadb/chroma
docker run -p 8081:8000 chromadb/chroma
docker stats
In general you don't have to reproduce exact my case, just load vectors, even random, and run query. look at the docker stats RAM memory metrics, the problem is that after each query chroma increases her memory and it is not released after that.
I seem to have the same problem in a Python virtual environment. By using collections, the memory keeps increasing until it uses all the server RAM, no matter how much I use a gc.collect()... Any idea ?
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 main
or, if you are using docker, use the latest builds e.g. docker pull chromadb/chroma:0.5.6.dev35
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