memcache报错 failed to close SockIO obj from deadPool(已解决)

memcache在频繁的报错

1
2
3
4
5
6
7
8
9
failed to close SockIO obj from deadPool
on Jun 09 11:54:55 CST 2014 - ++++ failed to close SockIO obj from deadPool
com.danga.MemCached.SockIOPool Mon Jun 09 11:54:55 CST 2014 - ++++ socket or its streams already null in trueClose call
java.io.IOException: ++++ socket or its streams already null in trueClose call
        at com.danga.MemCached.SockIOPool$SockIO.trueClose(SockIOPool.java:1704)
        at com.danga.MemCached.SockIOPool.selfMaint(SockIOPool.java:1432)
        at com.danga.MemCached.SockIOPool$MaintThread.run(SockIOPool.java:1497)
com.danga.MemCached.SockIOPool Mon Jun 09 11:54:55 CST 2014 - ++++ failed to close SockIO obj from deadPool
com.danga.MemCached.SockIOPool Mon Jun 09 11:54:55 CST 2014 - ++++ socket or its streams already null in trueClose call

网上搜索了下是 memcache 连接数和内存不够

将-m和-c调大就ok了
/usr/local/bin/memcached -d -m 1000 -u root -l 127.0.0.1 -p 11211 -c 4560 -P /tmp/memcached.pid

随机文章