2011年6月22日 星期三

[記事] Memcached-Session-Manager Debug

要看的再點開

裝完 MemcachedSessionManager (MSM) 後,馬上接著就要Debug也是很合理的 orz

簡單記一下一些奇怪的招術

In Java
SessionID  = session.getId();  // return 31DFDAECDA028A0757DFF4BDEE4CC865-n2.jvm1


(在 memcached server)
> telnet localhost 11211

[root@dev_cache_01 ~]# telnet localhost 11211
Trying 127.0.0.1...
Connected to localhost.localdomain (127.0.0.1).
Escape character is '^]'.
stats items

STAT items:5:number 1
STAT items:5:age 17029
STAT items:5:evicted 0
STAT items:5:evicted_nonzero 0
STAT items:5:evicted_time 0
STAT items:5 utofmemory 0
STAT items:5:tailrepairs 0
STAT items:5:reclaimed 1
END

stats cachedump 5 100
ITEM 31DFDAECDA028A0757DFF4BDEE4CC865-n2.jvm1 [117 b; 1308734897 s]
END
get 31DFDAECDA028A0757DFF4BDEE4CC865-n2.jvm1
VALUE 31DFDAECDA028A0757DFF4BDEE4CC865-n2.jvm1 2048 117
X0▒▒/Q0▒▒/010▒▒/d0▒▒/j(31DFDAECDA028A0757DFF4BDEE4CC865-n2.jvm1abcabc value in session
END

quit
Connection closed by foreign host.
>
(粗体字部份為需手動輸入的 protocal command)

沒什麼用的官方ref = =
http://code.google.com/p/memcached/wiki/NewCommands

0 意見:

張貼留言