XMen
XMen

Reputation: 30248

How to see number of connection in zookeeper

I want to see number of connection in zookeeper runing , as m running through lily , so it is giving exception but want to check number of connection in zookeeper.

http://zookeeper.apache.org/doc/r3.1.2/zookeeperStarted.html

Upvotes: 7

Views: 12648

Answers (2)

Hao
Hao

Reputation: 455

please input:

echo cons | nc localhost 2181

Upvotes: 1

phunt
phunt

Reputation: 530

The ZooKeeper Admin guide has details on how to do this. Look at the "stat" command. You might also use JMX depending on your monitoring sophistication.

PS: 3.1.2 is pretty old, you should upgrade.

Upvotes: 7

Related Questions