Posted on 2009-11-19 22:59
Gavin.lee 閱讀(1903)
評論(0) 編輯 收藏 所屬分類:
MemCache
連上memcache,然后stats,詳細如下:
mqq@32_167_game:~> telnet server port
Trying 172.16.32.166...
Connected to 172.16.32.166.
Escape character is '^]'.
stats
STAT pid 26530
STAT uptime 5807
STAT time 1258643806
STAT version 1.2.2
STAT pointer_size 64
STAT rusage_user 12.372773
STAT rusage_system 24.233514
STAT curr_items 72820
STAT total_items 5526
STAT bytes 95306264
STAT curr_connections 115
STAT total_connections 1
STAT connection_structures 116
STAT cmd_get 12507
STAT cmd_set 5526
STAT get_hits 12498
STAT get_misses 9
STAT evictions 0
STAT bytes_read 7363968
STAT bytes_written 15636889
STAT limit_maxbytes 2147483648
STAT threads 1
END
pid |
memcache服務器的進程ID |
uptime |
服務器已經運行的秒數 |
time |
服務器當前的unix時間戳 |
version |
memcache版本 |
pointer_size |
當前OS的指針大小(32位系統一般是32bit) |
rusage_user |
進程的累計用戶時間 |
rusage_system |
進程的累計系統時間 |
curr_items |
服務器當前存儲的items數量 |
total_items |
從服務器啟動以后存儲的items總數量 |
bytes |
當前服務器存儲items占用的字節數 |
curr_connections |
當前打開著的連接數 |
total_connections |
從服務器啟動以后曾經打開過的連接數 |
connection_structures |
服務器分配的連接構造數 |
cmd_get |
get命令(獲取)總請求次數 |
cmd_set |
set命令(保存)總請求次數 |
get_hits |
總命中次數 |
get_misses |
總未命中次數 |
evictions |
為獲取空閑內存而刪除的items數(分配給memcache的空間用滿后需要刪除舊的items來得到空間分配給新的items) |
bytes_read |
總讀取字節數(請求字節數) |
bytes_written |
總發送字節數(結果字節數) |
limit_maxbytes |
分配給memcache的內存大小(字節) |
threads |
當前線程數 |