memcached 管理session报错

挖他西瓦 发布于 2012/06/21 10:25
阅读 2K+
收藏 1

压力测试,并发200-300时 会报错。而且session丢失。

tomcat配置如下:

<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
             memcachedNodes="n1:localhost:11211"         
          sticky="false"
          sessionBackupAsync="false"
          sessionBackupTimeout="100"
           transcoderFactoryClass="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
           customConverter="de.javakaffee.web.msm.serializer.kryo.KryoTranscoderFactory"
          />

报错信息:

2012-6-18 21:36:33 de.javakaffee.web.msm.LockingStrategy onAfterBackupSession
警告: An error occurred during onAfterBackupSession.
net.spy.memcached.internal.CheckedOperationTimeoutException: Timed out waiting for operation - failing node: /10.10.2.1:11211
        at net.spy.memcached.internal.OperationFuture.get(OperationFuture.java:73)
        at de.javakaffee.web.msm.LockingStrategy.onAfterBackupSession(LockingStrategy.java:287)
        at de.javakaffee.web.msm.MemcachedSessionService.backupSession(MemcachedSessionService.java:970)
        at de.javakaffee.web.msm.SessionTrackerValve.backupSession(SessionTrackerValve.java:226)
        at de.javakaffee.web.msm.SessionTrackerValve.invoke(SessionTrackerValve.java:128)
        at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:567)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
        at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
        at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:291)
        at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:769)
        at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:698)
        at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:891)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
        at java.lang.Thread.run(Thread.java:662)

--------------

java.sql.SQLException: session was killed!!
 at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2816)
 at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1518)
 at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1609)
 at com.mysql.jdbc.Connection.execSQL(Connection.java:2234)
 at com.mysql.jdbc.Connection.execSQL(Connection.java:2159)
 at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1802)
 at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1647)
 at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)

加载中
0
杨某某
杨某某
我也遇到同样的问题了,请问你是怎么解决的啊,我的问题描述是这样 http://www.oschina.net/question/914277_83950能帮忙看看么
返回顶部
顶部