Closed GoogleCodeExporter closed 9 years ago
采用了spring3的配置 <bean name="memcachedClientBuilder" class="net.rubyeye.xmemcached.XMemcachedClientBuilder"> <constructor-arg> <bean class="net.rubyeye.xmemcached.utils.AddrUtil" factory-method="getAddressMap"> <constructor-arg value="**:11211,**:12211" /> </bean> </constructor-arg> <constructor-arg> <list> <value>1</value> </list> </constructor-arg> <property name="connectionPoolSize" value="2" /> <property name="opTimeout" value="3000" /> <property name="commandFactory"> <bean class="net.rubyeye.xmemcached.command.TextCommandFactory" /> </property> <property name="sessionLocator"> <bean class="net.rubyeye.xmemcached.impl.KetamaMemcachedSessionLocator" /> </property> <property name="transcoder"> <bean class="net.rubyeye.xmemcached.transcoders.SerializingTranscoder" /> </property> <property name="name" value="landlordsServerCached" /> <property name="failureMode" value="true" /> </bean> <bean name="mc" factory-bean="memcachedClientBuilder" factory-method="build" destroy-method="shutdown" autowire-candidate="true" /> memcached version 1.2.8 xmemcached 1.4.1.jar log4j 1.2.15.jar slf4j-api-1.5.8.jar slf4j-simple-1.5.8.jar tomcat集群中其中一台服务 常显示该错误 net.rubyeye.xmemcached.exception.MemcachedException: Session(**:12211) has been closed at net.rubyeye.xmemcached.impl.MemcachedConnector.send(MemcachedConnector.java:498) at net.rubyeye.xmemcached.XMemcachedClient.sendCommand(XMemcachedClient.java:288) at net.rubyeye.xmemcached.XMemcachedClient.fetch0(XMemcachedClient.java:617) at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:1030) at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:988) at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:999) at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:1021)
Original issue reported on code.google.com by mql...@gmail.com on 24 Sep 2013 at 10:06
mql...@gmail.com
这个基本跟xmemcached本身没有太大关系,请检查网络状况,主� ��状况等。
Original comment by killme2...@gmail.com on 27 Oct 2013 at 7:37
killme2...@gmail.com
Original issue reported on code.google.com by
mql...@gmail.com
on 24 Sep 2013 at 10:06