MongoDb --db.serverStatus() 命令的一些监控信息

http://docs.mongodb.org/manual/reference/command/serverStatus/

1,实例信息

        "host" : "db1local",      --主机名
        "version" : "2.6.5",      --版本
        "process" : "mongod",       --进程类型(mongod/mongos)
        "pid" : NumberLong(21003),     --进程id
        "uptime" : 464376,     --启动时间
        "uptimeMillis" : NumberLong(464376816),      --启动毫秒时间
        "uptimeEstimate" : 439104,     --mongodb内部粗粒度计算的启动时间
        "localTime" : ISODate("2014-12-01T02:42:49.865Z"),      --当前时间

2,断言
     

     "asserts" : {
                "regular" : 0,          --server启动以来正常断言总数
                "warning" : 0,          --警告总数
                "msg" : 0,         --消息断言数
                "user" : 368,         --用户断言数。比如:磁盘空间满,重复键。
                "rollovers" : 0     --翻转计数器显示的次数
           }

3,backgroundFlushing

  

   "backgroundFlushing" : {
                "flushes" : 7738,     --刷新写入磁盘的次数
                "total_ms" : 564475,     --写入磁盘总耗时ms
                "average_ms" : 72.94843628844663,     --单次写入磁盘耗时
                "last_ms" : 73,     --最后一次写入磁盘耗时
                "last_finished" : ISODate("2014-12-01T02:42:09.105Z")      --最后一次写入磁盘时间
        }

4,connections

"connections" : {
                "current" : 565,     --当前连接数
                "available" : 3017718,     --可用连接数
                "totalCreated" : NumberLong(142403)     --所有创建过的连接数
        },


5,cursors

"cursors" : {
                "note" : "deprecated, use server status metrics",      --辅助说明
                "clientCursors_size" : 3,     --当前客户端使用游标数
                "totalOpen" : 3,     --当前打开的游标数
                "pinned" : 1,     -- the number of “pinned” open cursors.
                "totalNoTimeout" : 0,     通过  DBQuery.Option.noTimeout阻止超时选项设置后打开的游标数
                "timedOut" : 5     --timeout游标总数
        },

6,durability

"dur" : {
                "commits" : 29,     --上一间隔journal日志发生commit的次数               
                "journaledMB" : 0.08192,     --写入journal日志数据量
                "writeToDataFilesMB" : 0.054763,     --写入到数据文件的数据量
                "compression" : 1.4260845345031683,     --压缩比
                "commitsInWriteLock" : 0,     --写锁期间提交次数
                "earlyCommits" : 0,    --schedule时间前请求commit的次数
                "timeMs" : {
                        "dt" : 3038,     --收集timemsdata的时间ms
                        "prepLogBuffer" : 0,     --准备写入journal耗时微秒
                        "writeToJournal" : 2,     --写入journal耗时微秒
                        "writeToDataFiles" : 0,     --journal之后写入数据文件耗时微秒
                        "remapPrivateView" : 0     --拷贝试图映射耗时微秒
                }
        },

7,extra_info

    "extra_info" : {
                "note" : "fields vary by platform"
        },


8,globalLock

"globalLock" : {              
          "totalTime" : NumberLong("464376816000"),     --全局锁创建耗时              
          "lockTime" : NumberLong(132696554),     --全局锁保持时间             
          "currentQueue" : {                        
            "total" : 0,     --等待全局锁的队列数                  
            "readers" : 0,         --等待读锁的队列数                    
            "writers" : 0     --等待写锁的队列数          
          },              
          "activeClients" : {            
            "total" : 1,     --连接到server的当前活动的客户端数     
            "readers" : 1,     --执行读操作的当前活动客户端数                  
            "writers" : 0      --执行写操作的当前活动客户端数       
          }      
     },


9,indexCounters

 "indexCounters" : {
                "accesses" : 31007275,     --索引访问量
                "hits" : 31007276,     --索引命中量
                "misses" : 0,     --索引访问失败量
                "resets" : 0,     --索引计数器被重置为0的次数
                "missRatio" : 0     --未命中率
        },


10,locks


 

 "locks" : {
                "." : {     --全局锁信息
                        "timeLockedMicros" : {          
                                "R" : NumberLong(13933041),     读锁耗时
                                "W" : NumberLong(132696554)     写锁耗时
                        },
                        "timeAcquiringMicros" : {
                                "R" : NumberLong(9414393),
                                "W" : NumberLong(14046097)
                        }
                },
                "admin" : {     --admin库锁信息
                        "timeLockedMicros" : {
                                "r" : NumberLong(1410977),
                                "w" : NumberLong(0)
                        },
                        "timeAcquiringMicros" : {
                                "r" : NumberLong(253433),
                                "w" : NumberLong(0)
                        }
                },
                "local" : {     --local库锁信息
                        "timeLockedMicros" : {
                                "r" : NumberLong(143301845),
                                "w" : NumberLong(91885203)
                        },
                        "timeAcquiringMicros" : {
                                "r" : NumberLong(3365080),
                                "w" : NumberLong(7204956)
                        }
                },
    
        },


11,network    

  

 "network" : {     
                "bytesIn" : 6596174349,     --发送到数据库的数据总量-bytes
                "bytesOut" : 47380728855,     --数据库发出的数据总量
                "numRequests" : 28549296     --发送到数据库请求数
        },

12,opcounters


   

   "opcounters" : {
                "insert" : 1516735,     --insert执行数
                "query" : 17303166,     --query执行数
                "update" : 2113907,     --update执行数
                "delete" : 42218,     --delete执行数
                "getmore" : 723795,     --getmore执行数
                "command" : 8297657     --command执行数
        },

13 ,opcountersRepl     


  

      "opcountersRepl" : {     --主从复制过程中操作情况
                "insert" : 0,     
                "query" : 0,
                "update" : 0,
                "delete" : 0,
                "getmore" : 0,
                "command" : 0
        },

14     recordStats


      

  "recordStats" : {
                "accessesNotInMemory" : 126168,     --访问不在内存中数据的次数
                "pageFaultExceptionsThrown" : 15129,     --访问数据抛出异常数
                "admin" : {
                        "accessesNotInMemory" : 0,
                        "pageFaultExceptionsThrown" : 0
                },
                "local" : {
                        "accessesNotInMemory" : 250,
                        "pageFaultExceptionsThrown" : 0
                },
                "pre" : {
                        "accessesNotInMemory" : 26,
                        "pageFaultExceptionsThrown" : 0
                }
        },

15,other


     

   "repl" : {     --主从信息
                "setName" : "core",   
                "setVersion" : 2,          
                "ismaster" : true,
                "secondary" : false,
                "hosts" : [
                        "db1-local:27017",
                        "db4-local:27020"
                ],
                "primary" : "db1-local:27017",
                "me" : "db1-local:27017"
        },
        "writeBacksQueued" : false,
        "mem" : {     --内存信息
                "bits" : 64,
                "resident" : 2116,          --常驻内存mb
                "virtual" : 244626,     --虚拟内存mb
                "supported" : true,     --是否支持扩展内存
                "mapped" : 121862,     --镜像内存mb
                "mappedWithJournal" : 243724     --包含journal镜像内存mb
        },
        "metrics" : {     
                "cursor" : {     --游标指标数据
                        "timedOut" : NumberLong(5), 
                        "open" : {
                                "noTimeout" : NumberLong(0),
                                "pinned" : NumberLong(1),
                                "total" : NumberLong(3)
                        }
                },
                "document" : {     --文档数据信息
                        "deleted" : NumberLong(83858),
                        "inserted" : NumberLong(1516567),
                        "returned" : NumberLong(43034397),
                        "updated" : NumberLong(1018031)
                },
                "getLastError" : {     --getLastError信息
                        "wtime" : {
                                "num" : 0,
                                "totalMillis" : 0
                        },
                        "wtimeouts" : NumberLong(0)
                },
                "operation" : {          --操作信息
                        "fastmod" : NumberLong(370534),     
                        "idhack" : NumberLong(0),     --包含_id查询的数
                        "scanAndOrder" : NumberLong(0)     --没使用索引排序查询的量
                },
                "queryExecutor" : {     
                        "scanned" : NumberLong(6422509),
                        "scannedObjects" : NumberLong(6422488)
                },
                "record" : {
                        "moves" : NumberLong(26298)
                },
                "repl" : {     --主从一些监控信息
                        "apply" : {
                                "batches" : {
                                        "num" : 0,
                                        "totalMillis" : 0
                                },
                                "ops" : NumberLong(0)
                        },
                        "buffer" : {
                                "count" : NumberLong(0),
                                "maxSizeBytes" : 268435456,
                                "sizeBytes" : NumberLong(0)
                        },
                        "network" : {
                                "bytes" : NumberLong(0),
                                "getmores" : {
                                        "num" : 0,
                                        "totalMillis" : 0
                                },
                                "ops" : NumberLong(0),
                                "readersCreated" : NumberLong(10)
                        },
                        "preload" : {
                                "docs" : {
                                        "num" : 0,
                                        "totalMillis" : 0
                                },
                                "indexes" : {
                                        "num" : 0,
                                        "totalMillis" : 0
                                }
                        }
                },
                "storage" : {     --存储
                        "freelist" : {
                                "search" : {
                                        "bucketExhausted" : NumberLong(0),
                                        "requests" : NumberLong(291134),
                                        "scanned" : NumberLong(467909)
                                }
                        }
                },
                "ttl" : {
                        "deletedDocuments" : NumberLong(0),     --通过ttl索引删除文档数
                        "passes" : NumberLong(7738)     --后台进程使用ttl索引删除文档次数
                }
        },


你可能感兴趣的:(mongodb,serverstatus)