bluegitter / xmemcached

Automatically exported from code.google.com/p/xmemcached
0 stars 0 forks source link

heartbeat fail 4 times,close session and try to heal it #278

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.白天网站访问量比较大,临晨比较小。
2.connectionPoolSize设的是30。
3.不定时的会有Remove|Add a session、Timed out(5000)。

What is the expected output? What do you see instead?
查看日志:
2013-12-23 05:20:25,180 (MemcachedHandler.java:221) WARN 
net.rubyeye.xmemcached.impl.MemcachedHandler - Session(10.63.1.12:11211) 
heartbeat fail 4 times,close session and try to heal it
2013-12-23 05:20:25,181 (MemcachedConnector.java:348) WARN 
com.google.code.yanf4j.core.impl.AbstractController - Remove a session: 
10.63.1.12:11211
2013-12-23 05:20:25,185 (MemcachedHandler.java:221) WARN 
net.rubyeye.xmemcached.impl.MemcachedHandler - Session(10.63.1.12:11211) 
heartbeat fail 5 times,close session and try to heal it
2013-12-23 05:20:27,186 (MemcachedConnector.java:124) WARN 
com.google.code.yanf4j.core.impl.AbstractController - Trying to connect to 
10.63.1.12:11211 for 1 times
2013-12-23 05:20:27,187 (MemcachedConnector.java:234) WARN 
com.google.code.yanf4j.core.impl.AbstractController - Add a session: 
10.63.1.12:11211
2013-12-23 05:24:14,467 (MemcacheService.java:86) ERROR 
com.netease.hearthstone.service.MemcacheService - get key: list_cache24 timeout!
java.util.concurrent.TimeoutException: Timed out(5000) waiting for operation

What version of the product are you using? On what operating system?
两台memcached,版本1.4.14,xmc版本1.3.8,commandFactory是TextCommandFa
ctory, OS:Debian

Please provide any additional information below.
net.rubyeye.xmemcached.exception.MemcachedException: Session has been closed
    at net.rubyeye.xmemcached.impl.MemcachedTCPSession.destroy(MemcachedTCPSession.java:115)
    at net.rubyeye.xmemcached.impl.MemcachedHandler.onSessionClosed(MemcachedHandler.java:141)
    at com.google.code.yanf4j.core.impl.AbstractSession.onClosed(AbstractSession.java:305)
    at com.google.code.yanf4j.core.impl.AbstractSession.close(AbstractSession.java:293)
    at net.rubyeye.xmemcached.impl.MemcachedHandler$CheckHeartResultThread.run(MemcachedHandler.java:229)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)

java.util.concurrent.TimeoutException: Timed out(5000) waiting for operation
    at net.rubyeye.xmemcached.XMemcachedClient.latchWait(XMemcachedClient.java:2565)
    at net.rubyeye.xmemcached.XMemcachedClient.fetch0(XMemcachedClient.java:592)
    at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:1005)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:963)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:974)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:996)

Original issue reported on code.google.com by yuand...@gmail.com on 23 Dec 2013 at 9:41

GoogleCodeExporter commented 9 years ago
可以禁止心跳试试

setEnableHeartBeat(false);

Original comment by killme2...@gmail.com on 28 Apr 2014 at 8:12