Excessive Watch Count Causes Memory and CPU Overhead
warningResource ContentionUpdated Feb 6, 2026
A very high watch count (tens of thousands) consumes significant memory and causes latency spikes when many watches fire simultaneously. This is often caused by clients creating watches without proper cleanup.
Sources




How to Monitor Zookeeper Ensemble Health with the Collectoroneuptime.com
How to Monitor ZooKeeper: Key Metrics & Best Tools in 2023sematext.com
Configuring and Monitoring Zookeeper with OpenTelemetry Receiveropenobserve.ai
End-to-End Guide: Configuring and Monitoring Zookeeper with OpenTelemetry Receiveropenobserve.ai
How to Configure the Zookeeper Receiver in the OpenTelemetry ...oneuptime.com
Technologies:
How to detect:
Monitor zookeeper.watch.count - alert when it exceeds 50,000 watches per server or shows sustained growth over days. Correlate with memory usage and latency spikes during watch trigger events.
Recommended action:
Identify which clients are creating excessive watches by examining connection statistics. Review client application code to ensure watches are removed when no longer needed. Consider implementing watch count limits per client connection if applications cannot be fixed immediately.