tomcat memcached session sharing

 <Context path="" reloadable="true" docBase="/root/pm/production/portal/ROOT"/>

 

Add in context.xml of each tomcat

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

Add the jar package in the attachment to the tomcat lib

 

Test to create a new project <%=session.getId()%>;

 

It is mainly the version of the jar package that causes various magical problems. The following attachment is the jar. I have all the iib directories under my tomcat7.0.69 lib.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326924484&siteId=291194637