Issue Description
When logging into the Ubuntu server where Stalwart runs as a Docker, I see:
=> There are 6456 zombie processes.
Reproduction Steps
- Leave Stalwart 0.16.x running for a few weeks
ps -eo stat=,ppid= | awk '$1 ~ /^Z/ {c[$2]++} END {for (p in c) print c[p], p}' | sort -rn | head
6469 3184418
# ps -o pid,ppid,user,lstart,args -p 3184418
PID PPID USER STARTED COMMAND
3184418 3184395 2000 Wed Jul 15 08:59:13 2026 /usr/local/bin/stalwart --config /etc/sta...
Relevant Log Output
In the logs, I see lots of
2026-08-10T19:50:29Z ERROR RocksDB error (store.rocksdb-error) reason = "IO error: While open a file for appending: /var/lib/stalwart//000499.log: Too many open files", details = "Failed to lock event.", causedBy = "crates/store/src/dispatch/lookup.rs:382", details = "Failed to lock event.", causedBy = "crates/smtp/src/queue/spool.rs:236"
Stalwart Version
v0.16.x
Installation Method
Docker
Database Backend
RocksDB
Blob Storage
RocksDB
Search Engine
Internal
Directory Backend
Internal
Additional Context
docker stats says:
1fed1df1acbe stalwart 0.08% 1.217GiB / 62.62GiB 1.94% 4.32GB / 3.77GB 8.76GB / 11.6GB 6521
I have reviewed the documentation and FAQ and confirm that my issue is NOT addressed there.
on
I have searched this support forum (open and closed topics) and confirm this is not a duplicate.
on
I understand that topics in this category are triaged by a bot first but a human reply will follow up. If I’d prefer a human-only reply, I’ll add the no-ai tag to my topic.
on