Memcached stats 命令
memcached stats 命令
memcached stats 命令用于返回統(tǒng)計(jì)信息例如 pid(進(jìn)程號)、版本號、連接數(shù)等。
1. 語法
stats 命令的基本語法格式如下:
stats
2. 范例
在以下范例中,我們使用了 stats 命令來輸出 memcached 服務(wù)信息。
stats stat pid 1162 stat uptime 5022 stat time 1415208270 stat version 1.4.14 stat libevent 2.0.19-stable stat pointer_size 64 stat rusage_user 0.096006 stat rusage_system 0.152009 stat curr_connections 5 stat total_connections 6 stat connection_structures 6 stat reserved_fds 20 stat cmd_get 6 stat cmd_set 4 stat cmd_flush 0 stat cmd_touch 0 stat get_hits 4 stat get_misses 2 stat delete_misses 1 stat delete_hits 1 stat incr_misses 2 stat incr_hits 1 stat decr_misses 0 stat decr_hits 1 stat cas_misses 0 stat cas_hits 0 stat cas_badval 0 stat touch_hits 0 stat touch_misses 0 stat auth_cmds 0 stat auth_errors 0 stat bytes_read 262 stat bytes_written 313 stat limit_maxbytes 67108864 stat accepting_conns 1 stat listen_disabled_num 0 stat threads 4 stat conn_yields 0 stat hash_power_level 16 stat hash_bytes 524288 stat hash_is_expanding 0 stat expired_unfetched 1 stat evicted_unfetched 0 stat bytes 142 stat curr_items 2 stat total_items 6 stat evictions 0 stat reclaimed 1 end
這里顯示了很多狀態(tài)信息,下邊詳細(xì)解釋每個狀態(tài)項(xiàng):
- pid: memcache服務(wù)器進(jìn)程id
- uptime:服務(wù)器已運(yùn)行秒數(shù)
- time:服務(wù)器當(dāng)前unix時間戳
- version:memcache版本
- pointer_size:操作系統(tǒng)指針大小
- rusage_user:進(jìn)程累計(jì)用戶時間
- rusage_system:進(jìn)程累計(jì)系統(tǒng)時間
- curr_connections:當(dāng)前連接數(shù)量
- total_connections:memcached運(yùn)行以來連接總數(shù)
- connection_structures:memcached分配的連接結(jié)構(gòu)數(shù)量
- cmd_get:get命令請求次數(shù)
- cmd_set:set命令請求次數(shù)
- cmd_flush:flush命令請求次數(shù)
- get_hits:get命令命中次數(shù)
- get_misses:get命令未命中次數(shù)
- delete_misses:delete命令未命中次數(shù)
- delete_hits:delete命令命中次數(shù)
- incr_misses:incr命令未命中次數(shù)
- incr_hits:incr命令命中次數(shù)
- decr_misses:decr命令未命中次數(shù)
- decr_hits:decr命令命中次數(shù)
- cas_misses:cas命令未命中次數(shù)
- cas_hits:cas命令命中次數(shù)
- cas_badval:使用擦拭次數(shù)
- auth_cmds:認(rèn)證命令處理的次數(shù)
- auth_errors:認(rèn)證失敗數(shù)目
- bytes_read:讀取總字節(jié)數(shù)
- bytes_written:發(fā)送總字節(jié)數(shù)
- limit_maxbytes:分配的內(nèi)存總大?。ㄗ止?jié))
- accepting_conns:服務(wù)器是否達(dá)到過最大連接(0/1)
- listen_disabled_num:失效的監(jiān)聽數(shù)
- threads:當(dāng)前線程數(shù)
- conn_yields:連接操作主動放棄數(shù)目
- bytes:當(dāng)前存儲占用的字節(jié)數(shù)
- curr_items:當(dāng)前存儲的數(shù)據(jù)總數(shù)
- total_items:啟動以來存儲的數(shù)據(jù)總數(shù)
- evictions:lru釋放的對象數(shù)目
- reclaimed:已過期的數(shù)據(jù)條目來存儲新數(shù)據(jù)的數(shù)目
相關(guān)文章