Skip to content

Possibly fix too many open file descriptors - #171

Merged
subpop merged 1 commit into
subpop:mainfrom
lukaaas176:fix/sqlite-pool-limit
Aug 11, 2026
Merged

Possibly fix too many open file descriptors#171
subpop merged 1 commit into
subpop:mainfrom
lukaaas176:fix/sqlite-pool-limit

Conversation

@lukaaas176

Copy link
Copy Markdown
Contributor

On my machine, I had troubles starting the application and sometimes other issues, that were not immediately noticable. Looking in the logs, the application crashed because of too many open file descriptors, which primarly were open by matrix-rust-sdk, opening a pool of max(2, 4 * core-count) per sqlite file.

Maintaining now a default of 4 connections (for writing and reading) by using SqliteStoreBuilder directly, this should hopefully improve the performance. This is sadly not really benchmarkable for me in the current state, but evaluating with my same account, I could not notice any regressions and would hope the same for everybody else!

This should be the final solution to #83

@subpop
subpop merged commit 9076445 into subpop:main Aug 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants