Hello everyone, when running pants on MAC OS X, I ...
# general
r
Hello everyone, when running pants on MAC OS X, I stumble a lot on this error
Exception message: Could not initialize store for process cache: "Error making env for store at \".cache/pants/config/lmdb_store/processes/f\": Too many open files"
, this means that a lot of files are opened, and it can be fixed with setting
ulimit -n 10000 # or whatever number
, what I don't understand is why pants need to open that many files? is it intended or a bug? Thanks : 😊
a
i don’t think pants makes any attempt to limit the number of open file descriptors — we use LMDB to snapshot file contents and it does a lot of stuff. it’s probably worth seeing whether we’re hitting other resource limits too while we’re at it. not sure if we’ve configured lmdb for use on laptops vs servers or something
h
What Danny said - I think this is just how LMDB works?