killme2008/xmemcached — pull request #13 by profondometer (2013-07-23 09:52:35+00:00)
Title: configure heartbeat ThreadPoolExecutor

Hi,
I've found that almost every time client.getAvaliableServers().size() returns zero, so heartBeatThreadPool is created with Runtime.getRuntime().availableProcessors() thread count, that is unnecessary here.
We can simply create a pool, where threads will be created when they are needed, and will die when they are not used. If application uses several memcached clients, this will significantly reduce jvm thread count.