Github user wangchaod commented on the issue:
https://github.com/apache/zookeeper/pull/611
@enixon In my running environment, the temporarily empty state of its watch
set will not pass soon. So then, the empty watcher increases to more than 10
thousand, and the OutOfMemoryError occurred in the end. Is that because the
corresponding ServerCnxn is not closed?
Plus, the jvm parameter: -Xmx512m---
