memcache監控常用方法,memcache監控

來源:互聯網
上載者:User

memcache監控常用方法,memcache監控

memcache監控常用方法

1、採用圖形化方式:

參考:http://jingyan.baidu.com/article/6525d4b11f482bac7d2e94da.html

在http://pecl.php.net/package/memcache 下載memcache,得到memcache.php檔案,設定帳號、密碼、memcache的IP連接埠即可。

將memcache.php檔案放到指定目錄。

此方法需要安裝lamp環境,可以圖形化展示,更直觀


2、採用memcache-top方式

:https://code.google.com/p/memcache-top/

這個工具memcache-top是一個perl指令碼,可以運行在term下。它能夠像top一樣顯示各個memcached節點的狀態變化,其中包括系統管理員最關心的幾個指數,例如:快取命中率、記憶體、使用率、讀寫QPS等。

運行前要確保memcache-top指令碼具有可執行許可權chmod u+x *.sh    ,然後使用./執行即可。

memcache-top比較重要的幾個參數包括:
–commands: 顯示GETS/SETS命令的調用次數
–sleep: 重新整理間隔,預設為3秒
–lifetime: 顯示自memcached啟動以來的累計統計值,預設關閉,即僅顯示瞬時速率。

運行後介面如下:


相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.