Apache ZooKeeper

File Descriptor Exhaustion Prevents New Connections

critical
Resource ContentionUpdated Feb 6, 2026

ZooKeeper opens file descriptors for client connections, log files, and internal operations. Approaching the OS file descriptor limit causes connection failures and operational issues.

How to detect:

Monitor zookeeper.file_descriptor.open and zookeeper.file_descriptor.limit. Alert when open file descriptors exceed 80% of the limit, or when connection attempts fail with 'too many open files' errors in logs.

Recommended action:

Increase OS file descriptor limits in /etc/security/limits.conf and via ulimit. Investigate why file descriptor count is high - check for connection leaks, ensure old log files are being cleaned up, and verify client applications properly close connections. Consider reducing maxClientCnxns if necessary.