mongostat和mongotop對mongodb資料庫運行狀態進行監控

來源:互聯網
上載者:User

標籤:date   insert   start   admin   ted   and   工具   root   bsp   


--mongostat工具是mongdb內建的監控工具,可以用來監控mongodb目前狀態下的運行情況:

[[email protected] ~]# /usr/local/mongodb341/bin/mongostat 2
insert query update delete getmore command dirty used flushes vsize   res qrw arw net_in net_out conn                time
    *0    *0     *0     *0       0     1|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    79b   22.5k    2 Dec 29 13:22:35.349
    *0    *0     *0     *0       0     1|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    79b   22.5k    2 Dec 29 13:22:37.349
    *0    *0     *0     *0       0     0|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    78b   22.5k    2 Dec 29 13:22:39.350
    *0    *0     *0     *0       0     1|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    79b   22.5k    2 Dec 29 13:22:41.349
    *0    *0     *0     *0       0     1|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    79b   22.5k    2 Dec 29 13:22:43.348
    *0    *0     *0     *0       0     0|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    78b   22.5k    2 Dec 29 13:22:45.349
    *0    *0     *0     *0       0     0|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0    78b   22.5k    2 Dec 29 13:22:47.350
    *0    *0     *0     *0       0     1|0  0.0% 0.0%       0  439M 56.0M 0|0 0|0   105b   22.5k    2 Dec 29 13:22:49.352

--mongotop工具是mongodb內建的top監控工具,可以用來監控當前mongodb資料庫哪些資源佔用資源較多,對於最佳化具有參考作用:

[[email protected] ~]# /usr/local/mongodb341/bin/mongotop 2
2016-12-29T13:24:35.530+0800    connected to: 127.0.0.1

                  ns    total    read    write    2016-12-29T13:24:37+08:00
  admin.system.roles      0ms     0ms      0ms                            
  admin.system.users      0ms     0ms      0ms                            
admin.system.version      0ms     0ms      0ms                            
             dbk.col      0ms     0ms      0ms                            
            dbk.test      0ms     0ms      0ms                            
          dbking.col      0ms     0ms      0ms                            
         dbking.test      0ms     0ms      0ms                            
           local.col      0ms     0ms      0ms                            
   local.startup_log      0ms     0ms      0ms                            
local.system.replset      0ms     0ms      0ms                            

                  ns    total    read    write    2016-12-29T13:24:39+08:00
  admin.system.roles      0ms     0ms      0ms                            
  admin.system.users      0ms     0ms      0ms                            
admin.system.version      0ms     0ms      0ms                            
             dbk.col      0ms     0ms      0ms                            
            dbk.test      0ms     0ms      0ms                            
          dbking.col      0ms     0ms      0ms                            
         dbking.test      0ms     0ms      0ms                            
           local.col      0ms     0ms      0ms                            
   local.startup_log      0ms     0ms      0ms                            
local.system.replset      0ms     0ms      0ms                            

mongostat和mongotop對mongodb資料庫運行狀態進行監控

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.