Huge useless busy socket when using Java API

Michael Su shuoshuo at gmail.com
Sat May 7 22:01:42 PDT 2005


Hi,

I've encounter a strange problem ... When using Java API, there are
many connections in busy pool for the first one server after running
30~60 minutes. Other servers' busy pool also grow slowly.

How could I solve this strange problem? Thanks in advance. 


Here's the debug message

com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Starting self maintenance....
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of avail pool for host ( 192.168.4.203:11211) = 8
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of busy pool for host (192.168.4.203:11211 ) = 190
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of avail pool for host (192.168.4.202:11211) = 2
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of busy pool for host ( 192.168.4.202:11211) = 3872
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Need to create 3 new sockets for pool for host: 192.168.4.202:11211
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of avail pool for host (192.168.4.205:11211) = 22
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of busy pool for host (192.168.4.205:11211) = 52
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of avail pool for host ( 192.168.4.204:11211) = 6
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - ++++
Size of busy pool for host (192.168.4.204:11211 ) = 200
com.danga.MemCached.SockIOPool Sun May 08 03:17:02 CST 2005 - +++
ending self maintenance.

Here's my environment:
1. Resin 2.1.x on 4 machine
2. Memcache 1.1.11 on 4 machine
3. Init Code:
         pool.setInitConn(5);
        pool.setMinConn(5);
        pool.setMaxConn(10);
        pool.setMaxIdle(10000L);
        pool.setMaintSleep(3000L);
        pool.setSocketTO(500);
        pool.setSocketConnectTO (500);
        pool.setNagle(false);
4. Server List:
        "192.168.4.202:11211", "192.168.4.203:11211", "
192.168.4.204:11211", "192.168.4.205:11211"


More information about the memcached mailing list