Re: identify the cause of a large quantity of zookeeper threads

2012-10-03 Thread Camille Fournier
Are you properly reusing your ZooKeeper clients? You should (probably) create one client and share it throughout your process to send requests to the server, not create a new client per usage. Seems like you're not creating and reusing clients appropriately. C On Wed, Oct 3, 2012 at 2:21 PM, Reyn

identify the cause of a large quantity of zookeeper threads

2012-10-03 Thread Reynold Xin
I am trying to debug a problem in which when I run jstack, I see a very large number of zookeeper threads, and as the program continues running, more threads like the following are created. I suspect somewhere in the program it is not releasing some resource properly, but I am not sure where it is.