Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 898
XMen Avatar asked Oct 11 '11 14:10

XMen


2 Answers

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.

like image 106
phunt Avatar answered Sep 24 '22 04:09

phunt


please input:

echo cons | nc localhost 2181
like image 23
Hao Avatar answered Sep 23 '22 04:09

Hao