Memcachedサーバに telnet で容量監視

クライアント側から、Memcachedサーバの監視をする手段をご紹介


コマンド

telnet サーバ名 ポート番号


実行例)

$ telnet localhost 11211
Trying localhost...
Connected to localhost(127.0.0.1).
Escape character is '^]'.
stats
STAT pid 31686
STAT uptime 980
STAT time 1184230616
STAT version 1.1.13
STAT pointer_size 32
STAT rusage_user 0.049992
STAT rusage_system 0.470928
STAT curr_items 11
STAT total_items 176
STAT bytes 2200418
STAT curr_connections 2
STAT total_connections 27
STAT connection_structures 3
STAT cmd_get 176
STAT cmd_set 177
STAT get_hits 176
STAT get_misses 0
STAT bytes_read 35205226
STAT bytes_written 35228779
STAT limit_maxbytes 20971520
END

quit
Connection closed by foreign host.


容量が分かってナイス