Blockstream / electrs

An efficient re-implementation of Electrum Server in Rust
MIT License
320 stars 131 forks source link

Cannot finish DB compaction on macOS due to open file limit #122

Open dzdidi opened 4 weeks ago

dzdidi commented 4 weeks ago

Linux default ulimit -n is 1024 which is not enough.

Note that this is not the case for https://github.com/romanz/electrs, see https://github.com/Blockstream/electrs/blob/new-index/src%2Fnew_index%2Fdb.rs#L88C69-L88C76

I'm running it with systemd and adding LimitNOFILE=4096 to [SERVICE] section of systemd service file seem to help, based on the link above 100000 will be more reliable.

Alternatively user needs to execute ulimit -n 100000 before start