I seem to be getting the same error whether I've set sticky to true *or*false. The server seems to have been available during this test, because
there are successful data transfers on the trace log before and after this
message (no other exceptions are logged. There's certainly no trouble
connecting to the cache from the EC2 instance by telnet.
I do get the point about asychronous mode and non-sticky. I want to do some
tests to see what the response time overhead is on the non-sticky mode. I'm
hoping I can come up with a compromise which unsticks a session when
there's a long gap between transactions, thus minimising the impact on
response time, while allowing sessions to migrate to new instances when the
autoscaler ramps up the instance count.
BTW, I'm off on my holidays, so can't respond again until next Thursday.
On Friday, 17 August 2012 19:52:47 UTC+1, Martin Grotzke wrote:Validity info is used with sticky=false, I assume this is a c'p error.
The exception says that the connection (or the client?) is being shut
down, so I wonder why this is happening. Are there any exceptions logged
before this one? Is the memcached service available?
Btw, with nonsticky sessions I'd recommend using async=false.
Cheers,
Martin
Am 17.08.2012 11:36 schrieb "Malcolm McMahon" <
[email protected]<javascript:>
:
I'm just starting to experiment with the session manager on the Amazon
cloud using an elasticcache server and Tomcat6.
I'm getting:
WARNING: An error when trying to load/update validity info.
java.lang.IllegalStateException: Shutting down
at
net.spy.memcached.MemcachedConnection.checkState(MemcachedConnecjava:821)
at
net.spy.memcached.MemcachedConnection.enqueueOperation(Memcachedction.java:638)
at
net.spy.memcached.MemcachedClient.asyncGet(MemcachedClient.java:
at net.spy.memcached.MemcachedClient.get(MemcachedClient.java:997)
at
net.spy.memcached.MemcachedClient.get(MemcachedClient.java:1018)
My configuration currently looks like:
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
memcachedNodes="n1:
sessions.4q8dq1.0001.euw1.cache.amazonaws.com:11211"
sticky="true"
sessionBackupAsync="true"
sessionBackupTimeout="1000"
memcachedProtocol="binary"
lockingMode="auto"
requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$"
transcoderFactoryClass="de.javakaffee.web.msm.JavaSerializationTranscoderFactory"
/>
I've turned the trace level up to FINE on the spy memcached library, and
I've tried updating this to the latest version. Looks like the actual
session data is being transferred, but this validity info is not, for some
reason.