码迷,mamicode.com
首页 > 数据库 > 详细

MongoDb --TOP 命令的一些监控信息

时间:2014-12-02 12:11:11      阅读:254      评论:0      收藏:0      [点我收藏+]

标签:style   ar   color   使用   sp   for   on   art   bs   

event types

  • total

  • readLock

  • writeLock

  • queries

  • getmore

  • insert

  • update

  • remove

  • commands

你可以使用下面命令:

db.adminCommand("top")

use admin
db.runCommand( { top: 1 } )

 output

{
  "totals" : {
     "records.users" : {
                  "total" : {
                          "time" : 305277,
                          "count" : 2825
                  },
                  "readLock" : {
                          "time" : 305264,
                          "count" : 2824
                  },
                  "writeLock" : {
                          "time" : 13,
                          "count" : 1
                  },
                  "queries" : {
                          "time" : 305264,
                          "count" : 2824
                  },
                  "getmore" : {
                          "time" : 0,
                          "count" : 0
                  },
                  "insert" : {
                          "time" : 0,
                          "count" : 0
                  },
                  "update" : {
                          "time" : 0,
                          "count" : 0
                  },
                  "remove" : {
                          "time" : 0,
                          "count" : 0
                  },
                  "commands" : {
                          "time" : 0,
                          "count" : 0
                  }
          }}


MongoDb --TOP 命令的一些监控信息

标签:style   ar   color   使用   sp   for   on   art   bs   

原文地址:http://my.oschina.net/stefanzhlg/blog/351303

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!