



下載本文檔
版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
1、.stats 查看memcached狀態(tài)的基本命令,通過這個命令可以看到如下信息: STAT pid 22459 進程ID STAT uptime 1027046 服務器運行秒數(shù) STAT time 1273043062 服務器當前unix時間戳 STAT version 1. 4. 4 服務器版本 STAT pointer_size 64 操作系統(tǒng)字大小(這臺服務器是64位的) STAT rusage_user 0. 040000 進程累計用戶時間 STAT rusage_system 0. 260000 進程累計系統(tǒng)時間 STAT curr_connections 10 當前打開連接數(shù) S
2、TAT total_connections 82 曾打開的連接總數(shù) STAT connection_structures 13 服務器分配的連接結構數(shù) STAT cmd_get 54 執(zhí)行get命令總數(shù) STAT cmd_set 34 執(zhí)行set命令總數(shù) STAT cmd_flush 3 指向flush_all命令總數(shù) STAT get_hits 9 get命中次數(shù) STAT get_misses 45 get未命中次數(shù) STAT delete_misses 5 delete未命中次數(shù) STAT delete_hits 1 delete命中次數(shù) STAT incr_misses 0 incr未
3、命中次數(shù) STAT incr_hits 0 incr命中次數(shù) STAT decr_misses 0 decr未命中次數(shù) STAT decr_hits 0 decr命中次數(shù) STAT cas_misses 0 cas未命中次數(shù) STAT cas_hits 0 cas命中次數(shù) STAT cas_badval 0 使用擦拭次數(shù) STAT auth_cmds 0 STAT auth_errors 0 STAT bytes_read 15785 讀取字節(jié)總數(shù) STAT bytes_written 15222 寫入字節(jié)總數(shù) STAT limit_maxbytes 1048576 分配的內(nèi)存數(shù)(字節(jié)) ST
4、AT accepting_conns 1 目前接受的鏈接數(shù) STAT listen_disabled_num 0 STAT threads 4 線程數(shù) STAT conn_yields 0 STAT bytes 0 存儲item字節(jié)數(shù) STAT curr_items 0 item個數(shù) STAT total_items 34 item總數(shù) STAT evictions 0 為獲取空間刪除item的總數(shù) stats items 輸出各個slab中的item信息。s stats slabs 輸出slab中更詳細的item信息 stats sizes 輸出所有item的大小和個數(shù) stats cach
5、edump <slab_id> <limit_num> 根據(jù)<slab_id>輸出相同的<slab_id>中的item信息。<limit_num>是輸出的個數(shù),當<limit_num>為0是輸出所有的item。 利用shell命令操作Memcached1、數(shù)據(jù)存儲(假設key為g,value為12345) printf "set g 0 0 5rn12345rn"|nc 127.0.0.1 11211 STORED 2、數(shù)據(jù)取回(假設key為zhangyan) printf "get grn&
6、quot;|nc 127.0.0.1 11211 VALUE g 0 5 12345 END 3、數(shù)值增加1(假設key為g,并且value為正整數(shù)) printf "incr g 1rn" | nc 127.0.0.1 11211 12346 4、數(shù)值減少3(假設key為g,并且value為正整數(shù)) printf "decr g 3rn" | nc 127.0.0.1 11211 12343 5、數(shù)據(jù)刪除(假設key為g) printf "delete grn" | nc 127.0.0.1 11211 DELETED 6、查看Me
7、mcached狀態(tài) printf "statsrn" | nc 127.0.0.1 11211 STAT pid 3025 STAT uptime 4120500 STAT time 1228021767 STAT version 1.2.6 STAT pointer_size 32 STAT rusage_user 433.463103 STAT rusage_system 1224.515845 STAT curr_items 1132460 STAT total_items 8980260 STAT bytes 1895325386 STAT curr_connect
8、ions 252 STAT total_connections 547850 STAT connection_structures 1189 STAT cmd_get 13619685 STAT cmd_set 8980260 STAT get_hits 6851607 STAT get_misses 6768078 STAT evictions 0 STAT bytes_read 160396238246 STAT bytes_written 260080686529 STAT limit_maxbytes 2147483648 STAT threads 1 END 7、模擬top命令,查看
9、Memcached狀態(tài): watch "printf 'statsrn' | nc 127.0.0.1 11211" 或者 watch "echo stats | nc 127.0.0.1 11211" 一、echo stats items | nc127.0.0.1 11211 STAT items:1:number 998 Slab Id=1 ; items數(shù)量:998(也就是已經(jīng)存儲了998個key值) STAT items:1:age 604348 Slab Id=1 ; 已經(jīng)存在時間,單位秒 STAT items:1:evict
10、ed 0 Slab Id=1 ; 被踢出的數(shù)量 STAT items:1:evicted_nonzero 0 STAT items:1:evicted_time 0 STAT items:1:outofmemory 0 STAT items:1:tailrepairs 0 STAT items:1:reclaimed 0 STAT items:6:number 91897 Slab Id=6 ; items數(shù)量:91897(也就是已經(jīng)存儲了91897個key值) STAT items:6:age 604345 Slab Id=6 ; 已經(jīng)存在時間,單位秒 STAT items:6:evicted 0
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- DB31/T 1008.2-2016甜瓜生產(chǎn)技術規(guī)范第2部分:秋季大棚栽培
- DB31/ 781-2014岸邊集裝箱起重機能源消耗指標限額和計算方法
- 電信服務在旅游行業(yè)的推廣考核試卷
- 2024年色酚類投資申請報告代可行性研究報告
- 景觀設計專利技術與實施合同
- 電商平臺數(shù)據(jù)分析與用戶增長策略合同
- 生物制藥純化技術授權與全球市場銷售合同
- 高級管理人員離職競業(yè)限制服務協(xié)議
- 汽車零部件質(zhì)量爭議高效調(diào)解合同
- 施工現(xiàn)場安全責任保證與質(zhì)量監(jiān)督協(xié)議
- 2025年消防知識考試題庫:火災預防與逃生逃生技巧實戰(zhàn)演練題
- 福建卷-2025屆高考化學全真模擬卷
- 高速公路占道施工應急安全措施
- 2022隧道順光照明技術指南
- 2025高考英語作文考前背誦(應用文+讀后續(xù)寫)
- 6.3種群基因組成的變化與物種的形成課件-2高一下學期生物人教版必修2
- 成人創(chuàng)傷性顱腦損傷院前與急診診治中國專家共識2025解讀
- 北京開放大學2025年《企業(yè)統(tǒng)計》形考作業(yè)4答案
- 廣東2025年中考模擬數(shù)學試卷試題及答案詳解
- GB/Z 27001-2025合格評定通用要素原則與要求
- 掛學籍協(xié)議書范本
評論
0/150
提交評論