https://pantsbuild.org/ logo
#general
Title
# general
r

rapid-crayon-8232

02/28/2020, 3:28 PM
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

aloof-angle-91616

02/28/2020, 9:34 PM
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

happy-kitchen-89482

02/29/2020, 1:22 AM
What Danny said - I think this is just how LMDB works?
5 Views