Closed GoogleCodeExporter closed 8 years ago
Tested the same behavior with simple Spring MVC application( have a single text
field enter user id and that should be set in the Memcached server using
JSESSION ID as a key. In this case I should see entries in memcached for only
one KEY(JSESSIONID), but the result is different.
lxdm491m7
=========
0: Client using the ascii protocol
<30 get ping-n2
>30 END
<30 set validity:9B5C8BF8A55A37A93785F86B75DF2D0A-n2 2048 1800 20
>30 STORED
<30 get ping-n2
>30 END
<30 add lock:9B5C8BF8A55A37A93785F86B75DF2D0A-n2 0 5 6
>30 STORED
<30 get 9B5C8BF8A55A37A93785F86B75DF2D0A-n2
>30 END
<30 delete lock:9B5C8BF8A55A37A93785F86B75DF2D0A-n2
>30 DELETED
lxdm620m7
========
30: Client using the ascii protocol
<30 get ping-n1
>30 END
<30 add lock:93BEE498D754AB9FDD78A17588D3BA47-n1 0 5 6
>30 STORED
<30 get 93BEE498D754AB9FDD78A17588D3BA47-n1
>30 END
<30 delete lock:93BEE498D754AB9FDD78A17588D3BA47-n1
>30 DELETED
<30 get ping-n1
>30 END
<30 set validity:99CF07842F978BBC0556F4B12B8E9E4B-n1 2048 1800 20
>30 STORED
<30 add lock:99CF07842F978BBC0556F4B12B8E9E4B-n1 0 5 6
>30 STORED
<30 get 99CF07842F978BBC0556F4B12B8E9E4B-n1
>30 END
<30 delete lock:99CF07842F978BBC0556F4B12B8E9E4B-n1
>30 DELETED
<30 set validity:CD7B4FFE0084FDF273B3F5003185470F-n1 2048 1800 20
>30 STORED
Could you please suggest what would be wrong in my settings.
Note: Here I have only one webapp, deployed with simple mvc.
<Manager className="de.javakaffee.web.msm.MemcachedBackupSessionManager"
sticky="false"
memcachedNodes="n1:lxdm620m7:11211,n2:lxdm491m7:11211"
lockingMode="all"
requestUriIgnorePattern=".*\.(png|gif|jpg|css|js|ico)$"
sessionBackupAsync="false"
sessionBackupTimeout="1000"
operationTimeout="5000"
/>
Original comment by yoga.und...@gmail.com
on 25 Mar 2014 at 9:34
My question here is why on lxdm620m7, i.e node 1(n1) has 3 different kind of
keys for the same JSESSION ID
93BEE498D754AB9FDD78A17588D3BA47-n1
99CF07842F978BBC0556F4B12B8E9E4B-n1
CD7B4FFE0084FDF273B3F5003185470F-n1
Original comment by yoga.und...@gmail.com
on 25 Mar 2014 at 9:42
Also the one in lxdm491m7 (n2) is different, 9B5C8BF8A55A37A93785F86B75DF2D0A.
So totally 4 keys got created for the same JSESSION ID. Please provide some
insight here. May be I'm wrong.
Original comment by yoga.und...@gmail.com
on 25 Mar 2014 at 9:44
Can you start from scratch by deleting all cookies for this host (e.g. use
chrome dev tools), and then inspect the http headers for each request to see
when which cookies are set?
You can try to configure storageKeyPrefix="context", see docs at
https://code.google.com/p/memcached-session-manager/wiki/SetupAndConfiguration#O
verview_over_memcached-session-manager_configuration_attributes
Original comment by martin.grotzke
on 27 Mar 2014 at 7:54
Yes, the stale cookie was causing this issue, now I see only one key is getting
created for each JSESSIONID.
Thanks
Yoga
Original comment by yoga.und...@gmail.com
on 27 Mar 2014 at 6:29
Ok, good.
Original comment by martin.grotzke
on 27 Mar 2014 at 8:11
Original issue reported on code.google.com by
yoga.und...@gmail.com
on 24 Mar 2014 at 11:09