Github user hanm commented on the issue:
https://github.com/apache/zookeeper/pull/611
#612 is now merged. @wangchaod Do you know what was the root cause of your
OOM issue? Were you using Netty instead of NIO? Would #612 fix your case? I am
curious if #612 does not fix your case because that implies that you get a lot
of connections with empty watchers and I am expecting you reach connection
limit even before those watchers can cause OOM.---
