mongodb可以通过profile来监控数据,进行优化,下列操作基于Studio 3T可视化工具,另外也可以通过自带的web管理界面进行操作或者是mongoDB自带的命令行工具mongostat。
1、查看当前mongoDB是否开启profile功能,
使用命令:db.getProfilingLevel();返回level等级,值为0|1|2,分别代表意思:0代表关闭,1代表记录慢命令,2代表全部。通常没做过任何修改的默认是返回0,也就是关闭状态。
使用命令:db.setProfilingLevel(level);开启profile功能为,其中level为1的时候,慢命令默认值为100ms,更改为db.setProfilingLevel(level,slowms)如db.setProfilingLevel(1,50)这样就更改为50毫秒,取决于你的需求自行调整。
通过上述设置后,我们先执行下面一条简单查询语句,因为之前的执行语句在没有开启profile功能时是查询不出监控日志的
db.getCollection("_mongoCase").find({_id:ObjectId("5c0c70747d9c6f0728933388")});
2、查看当前执行过的命令的监控日志
使用命令:db.system.profile.find() 查看当前所有的监控日志。当然我们也可以通过执行db.system.profile.find({millis:{$gt:500}})能够返回查询时间在500毫秒以上的查询命令。总之find里面的条件可以根据你当前的需要进行更改。
示例:执行命令 db.system.profile.find({millis:{$lt:1}}); 返回监控日志如下:
{
"op" : "query", //操作类型,有insert、query、update、remove、getmore、command
"ns" : "test._mongoCase", //命令空间,哪个库下的哪个集合
"command" : { //执行的命令
"find" : "_mongoCase", //目标对象集合
"filter" : { //过滤条件
"_id" : ObjectId("5c0c70747d9c6f0728933388")
},
"batchSize" : 33350.0,
"$db" : "test", //数据库
"lsid" : {
"id" : BinData(4, "XA2BHNiqTau9J278WRS3sA==")
},
"$readPreference" : {
"mode" : "secondaryPreferred"
}
},
"keysExamined" : 1.0, //索引扫描数量,这里用了_id,所以是1,如果没有用主键或索引这里会是0
"docsExamined" : 1.0, //文档扫描数量
"cursorExhausted" : true,
"numYield" : 0.0, //该操作为了使其他操作完成而放弃的次数。通常来说,当他们需要访问 还没有完全读入内存中的数据时,操作将放弃。这使得在MongoDB为了 放弃操作进行数据读取的同时,还有数据在内存中的其他操作可以完成。
"nreturned" : 1.0, //返回的文档数量
"locks" : { //锁信息,R:全局读锁;W:全局写锁;r:特定数据库的读锁;w:特定数据库的写锁
"Global" : { //全局锁
"acquireCount" : {
"r" : NumberLong(1) //该操作获取一个全局级锁花费的时间
}
},
"Database" : { //数据库锁
"acquireCount" : {
"r" : NumberLong(1)
}
},
"Collection" : { //集合锁
"acquireCount" : {
"r" : NumberLong(1)
}
}
},
"responseLength" : 258.0, //返回结果字节长度
"protocol" : "op_msg",
"millis" : 0.0, //消耗的时间(毫秒)
"planSummary" : "IDHACK", //执行概览 从这里看来 是主键查询,COLLSCAN 为全文档扫描
"execStats" : { //详细的执行计划 这里先略过 后续可以用 explain来具体分析
"stage" : "IDHACK",
"nReturned" : 1.0,
"executionTimeMillisEstimate" : 0.0,
"works" : 2.0,
"advanced" : 1.0,
"needTime" : 0.0,
"needYield" : 0.0,
"saveState" : 0.0,
"restoreState" : 0.0,
"isEOF" : 1.0,
"invalidates" : 0.0,
"keysExamined" : 1.0,
"docsExamined" : 1.0
},
"ts" : ISODate("2018-12-16T03:56:54.206+0000"), //命令执行的时间
"client" : "127.0.0.1", //访问的主机
"allUsers" : [
],
"user" : ""
}
慢查询的分析参考:
如果发现 millis 值比较大,那么就需要作优化。
如果docsExamined数很大,或者接近记录总数(文档数),那么可能没有用到索引查询,而是全表扫描。
如果keysExamined数为0,也可能是没用索引。
结合 planSummary 中的显示,上例中是 "IDHACK" 确认是针对主键查询,因为id是默认主键
如果 keysExamined 值高于 nreturned 的值,说明数据库为了找到目标文档扫描了很多文档。这时可以考虑创建索引来提高效率。
索引的键值选择可以根据 query 中的输出参考,
分析具体的执行计划,使用命令 db.getCollection("_mongoCase").find({_id:ObjectId("5c0c70747d9c6f0728933388")}).explain(); 这种操作类似于PL/SQL的F5。
3、查看某一个db的运行状态
使用命令 db.stats();能够查看当前数据库的运行情况
{
"db" : "test", //库名
"collections" : 2.0, //集合数
"views" : 0.0,
"objects" : 17.0, //记录数
"avgObjSize" : 336.5882352941176, //每条记录的平均值
"dataSize" : 5722.0, //记录的总大小
"storageSize" : 73728.0, //预分配的存储空间
"numExtents" : 0.0, //事件数
"indexes" : 1.0, //索引数
"indexSize" : 16384.0, //索引大小
"fsUsedSize" : 18770034688.0, //文件使用大小
"fsTotalSize" : 304943722496.0, //文件总大小
"ok" : 1.0
}
4、查看mongoDB运行状态
使用命令 db.serverStatus();能够查询这个mongoDB的运行情况
{
"host" : "DESKTOP-MFL4IGI", //主机名
"version" : "4.0.4", //mongoDB版本号
"process" : "E:\\MongoDB\\bin\\mongod.exe", //进程名
"pid" : NumberLong(12292), //进程ID
"uptime" : 7461.0, //运行时间
"uptimeMillis" : NumberLong(7460411),
"uptimeEstimate" : NumberLong(7460),
"localTime" : ISODate("2018-12-16T04:44:07.149+0000"), //当前时间
"asserts" : {
"regular" : 0.0,
"warning" : 0.0,
"msg" : 0.0,
"user" : 24.0,
"rollovers" : 0.0
},
"connections" : {
"current" : 4.0,
"available" : 999996.0,
"totalCreated" : 4.0
},
"extra_info" : {
"note" : "fields vary by platform",
"page_faults" : 52261.0,
"usagePageFileMB" : 149.0,
"totalPageFileMB" : 8998.0,
"availPageFileMB" : 3423.0,
"ramMB" : 8102.0
},
"freeMonitoring" : {
"state" : "undecided"
},
"globalLock" : {
"totalTime" : NumberLong(7460400000),
"currentQueue" : {
"total" : 0.0,
"readers" : 0.0,
"writers" : 0.0
},
"activeClients" : {
"total" : 15.0,
"readers" : 0.0,
"writers" : 0.0
}
},
"locks" : {
"Global" : {
"acquireCount" : {
"r" : NumberLong(24997),
"w" : NumberLong(205),
"W" : NumberLong(5)
}
},
"Database" : {
"acquireCount" : {
"r" : NumberLong(8635),
"w" : NumberLong(197),
"R" : NumberLong(10),
"W" : NumberLong(8)
},
"acquireWaitCount" : {
"W" : NumberLong(1)
},
"timeAcquiringMicros" : {
"W" : NumberLong(171)
}
},
"Collection" : {
"acquireCount" : {
"r" : NumberLong(8544),
"w" : NumberLong(172)
}
},
"Metadata" : {
"acquireCount" : {
"W" : NumberLong(9)
}
}
},
"logicalSessionRecordCache" : {
"activeSessionsCount" : 1.0,
"sessionsCollectionJobCount" : 25.0,
"lastSessionsCollectionJobDurationMillis" : 0.0,
"lastSessionsCollectionJobTimestamp" : ISODate("2018-12-16T04:39:48.942+0000"),
"lastSessionsCollectionJobEntriesRefreshed" : 0.0,
"lastSessionsCollectionJobEntriesEnded" : 0.0,
"lastSessionsCollectionJobCursorsClosed" : 0.0,
"transactionReaperJobCount" : 0.0,
"lastTransactionReaperJobDurationMillis" : 0.0,
"lastTransactionReaperJobTimestamp" : ISODate("2018-12-16T02:39:48.935+0000"),
"lastTransactionReaperJobEntriesCleanedUp" : 0.0
},
"network" : {
"bytesIn" : NumberLong(71202),
"bytesOut" : NumberLong(936059),
"physicalBytesIn" : NumberLong(71202),
"physicalBytesOut" : NumberLong(936059),
"numRequests" : NumberLong(1046),
"compression" : {
"snappy" : {
"compressor" : {
"bytesIn" : NumberLong(0),
"bytesOut" : NumberLong(0)
},
"decompressor" : {
"bytesIn" : NumberLong(0),
"bytesOut" : NumberLong(0)
}
}
},
"serviceExecutorTaskStats" : {
"executor" : "passthrough",
"threadsRunning" : 4.0
}
},
"opLatencies" : {
"reads" : {
"latency" : NumberLong(2549),
"ops" : NumberLong(19)
},
"writes" : {
"latency" : NumberLong(0),
"ops" : NumberLong(0)
},
"commands" : {
"latency" : NumberLong(116797),
"ops" : NumberLong(1026)
},
"transactions" : {
"latency" : NumberLong(0),
"ops" : NumberLong(0)
}
},
"opcounters" : {
"insert" : 0.0,
"query" : 18.0,
"update" : 14.0,
"delete" : 0.0,
"getmore" : 2.0,
"command" : 1052.0
},
"opcountersRepl" : {
"insert" : 0.0,
"query" : 0.0,
"update" : 0.0,
"delete" : 0.0,
"getmore" : 0.0,
"command" : 0.0
},
"storageEngine" : {
"name" : "wiredTiger",
"supportsCommittedReads" : true,
"supportsSnapshotReadConcern" : true,
"readOnly" : false,
"persistent" : true
},
"tcmalloc" : {
"generic" : {
"current_allocated_bytes" : 61257776.0,
"heap_size" : 62259200.0
},
"tcmalloc" : {
"pageheap_free_bytes" : 548864.0,
"pageheap_unmapped_bytes" : 0.0,
"max_total_thread_cache_bytes" : 1061158912.0,
"current_total_thread_cache_bytes" : 316520.0,
"total_free_bytes" : 452560.0,
"central_cache_free_bytes" : 136040.0,
"transfer_cache_free_bytes" : 0.0,
"thread_cache_free_bytes" : 316520.0,
"aggressive_memory_decommit" : 0.0,
"pageheap_committed_bytes" : 62259200.0,
"pageheap_scavenge_count" : 0.0,
"pageheap_commit_count" : 39.0,
"pageheap_total_commit_bytes" : 62259200.0,
"pageheap_decommit_count" : 0.0,
"pageheap_total_decommit_bytes" : 0.0,
"pageheap_reserve_count" : 39.0,
"pageheap_total_reserve_bytes" : 62259200.0,
"spinlock_total_delay_ns" : 0.0,
"formattedString" : "------------------------------------------------\nMALLOC: 61257776 ( 58.4 MiB) Bytes in use by application\nMALLOC: + 548864 ( 0.5 MiB) Bytes in page heap freelist\nMALLOC: + 136040 ( 0.1 MiB) Bytes in central cache freelist\nMALLOC: + 0 ( 0.0 MiB) Bytes in transfer cache freelist\nMALLOC: + 316520 ( 0.3 MiB) Bytes in thread cache freelists\nMALLOC: + 6316248 ( 6.0 MiB) Bytes in malloc metadata\nMALLOC: ------------\nMALLOC: = 68575448 ( 65.4 MiB) Actual memory used (physical + swap)\nMALLOC: + 0 ( 0.0 MiB) Bytes released to OS (aka unmapped)\nMALLOC: ------------\nMALLOC: = 68575448 ( 65.4 MiB) Virtual address space used\nMALLOC:\nMALLOC: 307 Spans in use\nMALLOC: 13 Thread heaps in use\nMALLOC: 4096 Tcmalloc page size\n------------------------------------------------\nCall ReleaseFreeMemory() to release freelist memory to the OS (via madvise()).\nBytes released to the OS take up virtual address space but no physical memory.\n"
}
},
"transactions" : {
"retriedCommandsCount" : NumberLong(0),
"retriedStatementsCount" : NumberLong(0),
"transactionsCollectionWriteCount" : NumberLong(0),
"currentActive" : NumberLong(0),
"currentInactive" : NumberLong(0),
"currentOpen" : NumberLong(0),
"totalAborted" : NumberLong(0),
"totalCommitted" : NumberLong(0),
"totalStarted" : NumberLong(0)
},
"transportSecurity" : {
"1.0" : NumberLong(0),
"1.1" : NumberLong(0),
"1.2" : NumberLong(0),
"1.3" : NumberLong(0),
"unknown" : NumberLong(0)
},
"wiredTiger" : {
"uri" : "statistics:",
"LSM" : {
"application work units currently queued" : 0.0,
"merge work units currently queued" : 0.0,
"rows merged in an LSM tree" : 0.0,
"sleep for LSM checkpoint throttle" : 0.0,
"sleep for LSM merge throttle" : 0.0,
"switch work units currently queued" : 0.0,
"tree maintenance operations discarded" : 0.0,
"tree maintenance operations executed" : 0.0,
"tree maintenance operations scheduled" : 0.0,
"tree queue hit maximum" : 0.0
},
"async" : {
"current work queue length" : 0.0,
"maximum work queue length" : 0.0,
"number of allocation state races" : 0.0,
"number of flush calls" : 0.0,
"number of operation slots viewed for allocation" : 0.0,
"number of times operation allocation failed" : 0.0,
"number of times worker found no work" : 0.0,
"total allocations" : 0.0,
"total compact calls" : 0.0,
"total insert calls" : 0.0,
"total remove calls" : 0.0,
"total search calls" : 0.0,
"total update calls" : 0.0
},
"block-manager" : {
"blocks pre-loaded" : 9.0,
"blocks read" : 109.0,
"blocks written" : 347.0,
"bytes read" : 458752.0,
"bytes written" : 1896448.0,
"bytes written for checkpoint" : 1896448.0,
"mapped blocks read" : 0.0,
"mapped bytes read" : 0.0
},
"cache" : {
"application threads page read from disk to cache count" : 8.0,
"application threads page read from disk to cache time (usecs)" : 0.0,
"application threads page write from cache to disk count" : 170.0,
"application threads page write from cache to disk time (usecs)" : 25206.0,
"bytes belonging to page images in the cache" : 33496.0,
"bytes belonging to the cache overflow table in the cache" : 182.0,
"bytes currently in the cache" : 75961.0,
"bytes not belonging to page images in the cache" : 42465.0,
"bytes read into cache" : 31015.0,
"bytes written from cache" : 604762.0,
"cache overflow cursor application thread wait time (usecs)" : 0.0,
"cache overflow cursor internal thread wait time (usecs)" : 0.0,
"cache overflow score" : 0.0,
"cache overflow table entries" : 0.0,
"cache overflow table insert calls" : 0.0,
"cache overflow table remove calls" : 0.0,
"checkpoint blocked page eviction" : 0.0,
"eviction calls to get a page" : 397.0,
"eviction calls to get a page found queue empty" : 387.0,
"eviction calls to get a page found queue empty after locking" : 0.0,
"eviction currently operating in aggressive mode" : 0.0,
"eviction empty score" : 0.0,
"eviction passes of a file" : 0.0,
"eviction server candidate queue empty when topping up" : 0.0,
"eviction server candidate queue not empty when topping up" : 0.0,
"eviction server evicting pages" : 0.0,
"eviction server slept, because we did not make progress with eviction" : 186.0,
"eviction server unable to reach eviction goal" : 0.0,
"eviction state" : 32.0,
"eviction walk target pages histogram - 0-9" : 0.0,
"eviction walk target pages histogram - 10-31" : 0.0,
"eviction walk target pages histogram - 128 and higher" : 0.0,
"eviction walk target pages histogram - 32-63" : 0.0,
"eviction walk target pages histogram - 64-128" : 0.0,
"eviction walks abandoned" : 0.0,
"eviction walks gave up because they restarted their walk twice" : 0.0,
"eviction walks gave up because they saw too many pages and found no candidates" : 0.0,
"eviction walks gave up because they saw too many pages and found too few candidates" : 0.0,
"eviction walks reached end of tree" : 0.0,
"eviction walks started from root of tree" : 0.0,
"eviction walks started from saved location in tree" : 0.0,
"eviction worker thread active" : 4.0,
"eviction worker thread created" : 0.0,
"eviction worker thread evicting pages" : 1.0,
"eviction worker thread removed" : 0.0,
"eviction worker thread stable number" : 0.0,
"failed eviction of pages that exceeded the in-memory maximum count" : 0.0,
"failed eviction of pages that exceeded the in-memory maximum time (usecs)" : 0.0,
"files with active eviction walks" : 0.0,
"files with new eviction walks started" : 0.0,
"force re-tuning of eviction workers once in a while" : 0.0,
"hazard pointer blocked page eviction" : 0.0,
"hazard pointer check calls" : 1.0,
"hazard pointer check entries walked" : 0.0,
"hazard pointer maximum array length" : 0.0,
"in-memory page passed criteria to be split" : 0.0,
"in-memory page splits" : 0.0,
"internal pages evicted" : 0.0,
"internal pages split during eviction" : 0.0,
"leaf pages split during eviction" : 0.0,
"maximum bytes configured" : 3710910464.0,
"maximum page size at eviction" : 0.0,
"modified pages evicted" : 1.0,
"modified pages evicted by application threads" : 0.0,
"operations timed out waiting for space in cache" : 0.0,
"overflow pages read into cache" : 0.0,
"page split during eviction deepened the tree" : 0.0,
"page written requiring cache overflow records" : 0.0,
"pages currently held in the cache" : 27.0,
"pages evicted because they exceeded the in-memory maximum count" : 0.0,
"pages evicted because they exceeded the in-memory maximum time (usecs)" : 0.0,
"pages evicted because they had chains of deleted items count" : 0.0,
"pages evicted because they had chains of deleted items time (usecs)" : 0.0,
"pages evicted by application threads" : 0.0,
"pages queued for eviction" : 0.0,
"pages queued for urgent eviction" : 1.0,
"pages queued for urgent eviction during walk" : 0.0,
"pages read into cache" : 18.0,
"pages read into cache after truncate" : 5.0,
"pages read into cache after truncate in prepare state" : 0.0,
"pages read into cache requiring cache overflow entries" : 0.0,
"pages read into cache requiring cache overflow for checkpoint" : 0.0,
"pages read into cache skipping older cache overflow entries" : 0.0,
"pages read into cache with skipped cache overflow entries needed later" : 0.0,
"pages read into cache with skipped cache overflow entries needed later by checkpoint" : 0.0,
"pages requested from the cache" : 4467.0,
"pages seen by eviction walk" : 0.0,
"pages selected for eviction unable to be evicted" : 0.0,
"pages walked for eviction" : 0.0,
"pages written from cache" : 171.0,
"pages written requiring in-memory restoration" : 0.0,
"percentage overhead" : 8.0,
"tracked bytes belonging to internal pages in the cache" : 5048.0,
"tracked bytes belonging to leaf pages in the cache" : 70913.0,
"tracked dirty bytes in the cache" : 0.0,
"tracked dirty pages in the cache" : 0.0,
"unmodified pages evicted" : 0.0
},
"connection" : {
"auto adjusting condition resets" : 619.0,
"auto adjusting condition wait calls" : 45852.0,
"detected system time went backwards" : 0.0,
"files currently open" : 17.0,
"memory allocations" : 169157.0,
"memory frees" : 167917.0,
"memory re-allocations" : 30618.0,
"pthread mutex condition wait calls" : 124424.0,
"pthread mutex shared lock read-lock calls" : 53467.0,
"pthread mutex shared lock write-lock calls" : 8169.0,
"total fsync I/Os" : 469.0,
"total read I/Os" : 1525.0,
"total write I/Os" : 594.0
},
"cursor" : {
"cursor create calls" : 67.0,
"cursor insert calls" : 135.0,
"cursor modify calls" : 0.0,
"cursor next calls" : 234.0,
"cursor operation restarted" : 0.0,
"cursor prev calls" : 45.0,
"cursor remove calls" : 28.0,
"cursor reserve calls" : 0.0,
"cursor reset calls" : 4757.0,
"cursor search calls" : 2715.0,
"cursor search near calls" : 144.0,
"cursor sweep buckets" : 44754.0,
"cursor sweep cursors closed" : 0.0,
"cursor sweep cursors examined" : 1068.0,
"cursor sweeps" : 7459.0,
"cursor update calls" : 0.0,
"cursors cached on close" : 345.0,
"cursors reused from cache" : 325.0,
"truncate calls" : 0.0
},
"data-handle" : {
"connection data handles currently active" : 26.0,
"connection sweep candidate became referenced" : 0.0,
"connection sweep dhandles closed" : 0.0,
"connection sweep dhandles removed from hash list" : 61.0,
"connection sweep time-of-death sets" : 390.0,
"connection sweeps" : 3724.0,
"session dhandles swept" : 0.0,
"session sweep attempts" : 67.0
},
"lock" : {
"checkpoint lock acquisitions" : 136.0,
"checkpoint lock application thread wait time (usecs)" : 0.0,
"checkpoint lock internal thread wait time (usecs)" : 0.0,
"commit timestamp queue lock application thread time waiting (usecs)" : 0.0,
"commit timestamp queue lock internal thread time waiting (usecs)" : 0.0,
"commit timestamp queue read lock acquisitions" : 0.0,
"commit timestamp queue write lock acquisitions" : 0.0,
"dhandle lock application thread time waiting (usecs)" : 0.0,
"dhandle lock internal thread time waiting (usecs)" : 0.0,
"dhandle read lock acquisitions" : 30740.0,
"dhandle write lock acquisitions" : 149.0,
"metadata lock acquisitions" : 125.0,
"metadata lock application thread wait time (usecs)" : 0.0,
"metadata lock internal thread wait time (usecs)" : 0.0,
"read timestamp queue lock application thread time waiting (usecs)" : 0.0,
"read timestamp queue lock internal thread time waiting (usecs)" : 0.0,
"read timestamp queue read lock acquisitions" : 0.0,
"read timestamp queue write lock acquisitions" : 0.0,
"schema lock acquisitions" : 154.0,
"schema lock application thread wait time (usecs)" : 0.0,
"schema lock internal thread wait time (usecs)" : 0.0,
"table lock application thread time waiting for the table lock (usecs)" : 0.0,
"table lock internal thread time waiting for the table lock (usecs)" : 0.0,
"table read lock acquisitions" : 0.0,
"table write lock acquisitions" : 14.0,
"txn global lock application thread time waiting (usecs)" : 0.0,
"txn global lock internal thread time waiting (usecs)" : 0.0,
"txn global read lock acquisitions" : 458.0,
"txn global write lock acquisitions" : 409.0
},
"log" : {
"busy returns attempting to switch slots" : 1.0,
"force archive time sleeping (usecs)" : 0.0,
"log bytes of payload data" : 46782.0,
"log bytes written" : 70912.0,
"log files manually zero-filled" : 0.0,
"log flush operations" : 74160.0,
"log force write operations" : 81811.0,
"log force write operations skipped" : 81650.0,
"log records compressed" : 45.0,
"log records not compressed" : 19.0,
"log records too small to compress" : 195.0,
"log release advances write LSN" : 47.0,
"log scan operations" : 6.0,
"log scan records requiring two reads" : 0.0,
"log server thread advances write LSN" : 161.0,
"log server thread write LSN walk skipped" : 8133.0,
"log sync operations" : 208.0,
"log sync time duration (usecs)" : 4215507.0,
"log sync_dir operations" : 1.0,
"log sync_dir time duration (usecs)" : 0.0,
"log write operations" : 259.0,
"logging bytes consolidated" : 70400.0,
"maximum log file size" : 104857600.0,
"number of pre-allocated log files to create" : 2.0,
"pre-allocated log files not ready and missed" : 1.0,
"pre-allocated log files prepared" : 2.0,
"pre-allocated log files used" : 0.0,
"records processed by log scan" : 13.0,
"slot close lost race" : 0.0,
"slot close unbuffered waits" : 0.0,
"slot closures" : 208.0,
"slot join atomic update races" : 0.0,
"slot join calls atomic updates raced" : 0.0,
"slot join calls did not yield" : 259.0,
"slot join calls found active slot closed" : 0.0,
"slot join calls slept" : 0.0,
"slot join calls yielded" : 0.0,
"slot join found active slot closed" : 0.0,
"slot joins yield time (usecs)" : 0.0,
"slot transitions unable to find free slot" : 0.0,
"slot unbuffered writes" : 0.0,
"total in-memory size of compressed records" : 70943.0,
"total log buffer size" : 33554432.0,
"total size of compressed records" : 37500.0,
"written slots coalesced" : 0.0,
"yields waiting for previous log file close" : 0.0
},
"perf" : {
"file system read latency histogram (bucket 1) - 10-49ms" : 2.0,
"file system read latency histogram (bucket 2) - 50-99ms" : 0.0,
"file system read latency histogram (bucket 3) - 100-249ms" : 0.0,
"file system read latency histogram (bucket 4) - 250-499ms" : 0.0,
"file system read latency histogram (bucket 5) - 500-999ms" : 0.0,
"file system read latency histogram (bucket 6) - 1000ms+" : 0.0,
"file system write latency histogram (bucket 1) - 10-49ms" : 1.0,
"file system write latency histogram (bucket 2) - 50-99ms" : 0.0,
"file system write latency histogram (bucket 3) - 100-249ms" : 0.0,
"file system write latency histogram (bucket 4) - 250-499ms" : 0.0,
"file system write latency histogram (bucket 5) - 500-999ms" : 0.0,
"file system write latency histogram (bucket 6) - 1000ms+" : 0.0,
"operation read latency histogram (bucket 1) - 100-249us" : 0.0,
"operation read latency histogram (bucket 2) - 250-499us" : 0.0,
"operation read latency histogram (bucket 3) - 500-999us" : 2.0,
"operation read latency histogram (bucket 4) - 1000-9999us" : 0.0,
"operation read latency histogram (bucket 5) - 10000us+" : 0.0,
"operation write latency histogram (bucket 1) - 100-249us" : 0.0,
"operation write latency histogram (bucket 2) - 250-499us" : 0.0,
"operation write latency histogram (bucket 3) - 500-999us" : 0.0,
"operation write latency histogram (bucket 4) - 1000-9999us" : 0.0,
"operation write latency histogram (bucket 5) - 10000us+" : 0.0
},
"reconciliation" : {
"fast-path pages deleted" : 0.0,
"page reconciliation calls" : 181.0,
"page reconciliation calls for eviction" : 1.0,
"pages deleted" : 10.0,
"split bytes currently awaiting free" : 0.0,
"split objects currently awaiting free" : 0.0
},
"session" : {
"open cursor count" : 22.0,
"open session count" : 19.0,
"session query timestamp calls" : 0.0,
"table alter failed calls" : 0.0,
"table alter successful calls" : 11.0,
"table alter unchanged and skipped" : 33.0,
"table compact failed calls" : 0.0,
"table compact successful calls" : 0.0,
"table create failed calls" : 0.0,
"table create successful calls" : 2.0,
"table drop failed calls" : 0.0,
"table drop successful calls" : 0.0,
"table rebalance failed calls" : 0.0,
"table rebalance successful calls" : 0.0,
"table rename failed calls" : 0.0,
"table rename successful calls" : 0.0,
"table salvage failed calls" : 0.0,
"table salvage successful calls" : 0.0,
"table truncate failed calls" : 0.0,
"table truncate successful calls" : 0.0,
"table verify failed calls" : 0.0,
"table verify successful calls" : 0.0
},
"thread-state" : {
"active filesystem fsync calls" : 0.0,
"active filesystem read calls" : 0.0,
"active filesystem write calls" : 0.0
},
"thread-yield" : {
"application thread time evicting (usecs)" : 0.0,
"application thread time waiting for cache (usecs)" : 0.0,
"connection close blocked waiting for transaction state stabilization" : 0.0,
"connection close yielded for lsm manager shutdown" : 0.0,
"data handle lock yielded" : 0.0,
"get reference for page index and slot time sleeping (usecs)" : 0.0,
"log server sync yielded for log write" : 0.0,
"page access yielded due to prepare state change" : 0.0,
"page acquire busy blocked" : 0.0,
"page acquire eviction blocked" : 0.0,
"page acquire locked blocked" : 0.0,
"page acquire read blocked" : 0.0,
"page acquire time sleeping (usecs)" : 0.0,
"page delete rollback time sleeping for state change (usecs)" : 0.0,
"page reconciliation yielded due to child modification" : 0.0
},
"transaction" : {
"Number of prepared updates" : 0.0,
"Number of prepared updates added to cache overflow" : 0.0,
"Number of prepared updates resolved" : 0.0,
"commit timestamp queue entries walked" : 0.0,
"commit timestamp queue insert to empty" : 0.0,
"commit timestamp queue inserts to head" : 0.0,
"commit timestamp queue inserts total" : 0.0,
"commit timestamp queue length" : 0.0,
"number of named snapshots created" : 0.0,
"number of named snapshots dropped" : 0.0,
"prepared transactions" : 0.0,
"prepared transactions committed" : 0.0,
"prepared transactions currently active" : 0.0,
"prepared transactions rolled back" : 0.0,
"query timestamp calls" : 1.0,
"read timestamp queue entries walked" : 0.0,
"read timestamp queue insert to empty" : 0.0,
"read timestamp queue inserts to head" : 0.0,
"read timestamp queue inserts total" : 0.0,
"read timestamp queue length" : 0.0,
"rollback to stable calls" : 0.0,
"rollback to stable updates aborted" : 0.0,
"rollback to stable updates removed from cache overflow" : 0.0,
"set timestamp calls" : 0.0,
"set timestamp commit calls" : 0.0,
"set timestamp commit updates" : 0.0,
"set timestamp oldest calls" : 0.0,
"set timestamp oldest updates" : 0.0,
"set timestamp stable calls" : 0.0,
"set timestamp stable updates" : 0.0,
"transaction begins" : 401.0,
"transaction checkpoint currently running" : 0.0,
"transaction checkpoint generation" : 126.0,
"transaction checkpoint max time (msecs)" : 191.0,
"transaction checkpoint min time (msecs)" : 1.0,
"transaction checkpoint most recent time (msecs)" : 2.0,
"transaction checkpoint scrub dirty target" : 0.0,
"transaction checkpoint scrub time (msecs)" : 0.0,
"transaction checkpoint total time (msecs)" : 4689.0,
"transaction checkpoints" : 125.0,
"transaction checkpoints skipped because database was clean" : 0.0,
"transaction failures due to cache overflow" : 0.0,
"transaction fsync calls for checkpoint after allocating the transaction ID" : 125.0,
"transaction fsync duration for checkpoint after allocating the transaction ID (usecs)" : 0.0,
"transaction range of IDs currently pinned" : 0.0,
"transaction range of IDs currently pinned by a checkpoint" : 0.0,
"transaction range of IDs currently pinned by named snapshots" : 0.0,
"transaction range of timestamps currently pinned" : 0.0,
"transaction range of timestamps pinned by a checkpoint" : 0.0,
"transaction range of timestamps pinned by the oldest timestamp" : 0.0,
"transaction sync calls" : 0.0,
"transactions committed" : 50.0,
"transactions rolled back" : 351.0,
"update conflicts" : 0.0
},
"concurrentTransactions" : {
"write" : {
"out" : 0.0,
"available" : 128.0,
"totalTickets" : 128.0
},
"read" : {
"out" : 1.0,
"available" : 127.0,
"totalTickets" : 128.0
}
}
},
"mem" : {
"bits" : 64.0,
"resident" : 80.0,
"virtual" : 5056.0,
"supported" : true,
"mapped" : 0.0,
"mappedWithJournal" : 0.0
},
"metrics" : {
"commands" : {
"buildInfo" : {
"failed" : NumberLong(0),
"total" : NumberLong(5)
},
"collStats" : {
"failed" : NumberLong(2),
"total" : NumberLong(3)
},
"connectionStatus" : {
"failed" : NumberLong(0),
"total" : NumberLong(22)
},
"createIndexes" : {
"failed" : NumberLong(0),
"total" : NumberLong(25)
},
"dbStats" : {
"failed" : NumberLong(0),
"total" : NumberLong(4)
},
"find" : {
"failed" : NumberLong(0),
"total" : NumberLong(18)
},
"getLastError" : {
"failed" : NumberLong(0),
"total" : NumberLong(3)
},
"getMore" : {
"failed" : NumberLong(0),
"total" : NumberLong(2)
},
"isMaster" : {
"failed" : NumberLong(0),
"total" : NumberLong(900)
},
"listCollections" : {
"failed" : NumberLong(0),
"total" : NumberLong(19)
},
"listDatabases" : {
"failed" : NumberLong(0),
"total" : NumberLong(19)
},
"listIndexes" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
},
"profile" : {
"failed" : NumberLong(0),
"total" : NumberLong(3)
},
"replSetGetStatus" : {
"failed" : NumberLong(24),
"total" : NumberLong(24)
},
"serverStatus" : {
"failed" : NumberLong(0),
"total" : NumberLong(23)
},
"update" : {
"failed" : NumberLong(0),
"total" : NumberLong(8)
},
"whatsmyuri" : {
"failed" : NumberLong(0),
"total" : NumberLong(1)
}
},
"cursor" : {
"timedOut" : NumberLong(0),
"open" : {
"noTimeout" : NumberLong(0),
"pinned" : NumberLong(0),
"total" : NumberLong(0)
}
},
"document" : {
"deleted" : NumberLong(0),
"inserted" : NumberLong(0),
"returned" : NumberLong(38),
"updated" : NumberLong(6)
},
"getLastError" : {
"wtime" : {
"num" : 0.0,
"totalMillis" : 0.0
},
"wtimeouts" : NumberLong(0)
},
"operation" : {
"scanAndOrder" : NumberLong(0),
"writeConflicts" : NumberLong(0)
},
"queryExecutor" : {
"scanned" : NumberLong(9),
"scannedObjects" : NumberLong(66)
},
"record" : {
"moves" : NumberLong(0)
},
"repl" : {
"executor" : {
"pool" : {
"inProgressCount" : 0.0
},
"queues" : {
"networkInProgress" : 0.0,
"sleepers" : 0.0
},
"unsignaledEvents" : 0.0,
"shuttingDown" : false,
"networkInterface" : "DEPRECATED: getDiagnosticString is deprecated in NetworkInterfaceTL"
},
"apply" : {
"attemptsToBecomeSecondary" : NumberLong(0),
"batches" : {
"num" : 0.0,
"totalMillis" : 0.0
},
"ops" : NumberLong(0)
},
"buffer" : {
"count" : NumberLong(0),
"maxSizeBytes" : NumberLong(0),
"sizeBytes" : NumberLong(0)
},
"initialSync" : {
"completed" : NumberLong(0),
"failedAttempts" : NumberLong(0),
"failures" : NumberLong(0)
},
"network" : {
"bytes" : NumberLong(0),
"getmores" : {
"num" : 0.0,
"totalMillis" : 0.0
},
"ops" : NumberLong(0),
"readersCreated" : NumberLong(0)
},
"preload" : {
"docs" : {
"num" : 0.0,
"totalMillis" : 0.0
},
"indexes" : {
"num" : 0.0,
"totalMillis" : 0.0
}
}
},
"storage" : {
"freelist" : {
"search" : {
"bucketExhausted" : NumberLong(0),
"requests" : NumberLong(0),
"scanned" : NumberLong(0)
}
}
},
"ttl" : {
"deletedDocuments" : NumberLong(7),
"passes" : NumberLong(124)
}
},
"ok" : 1.0
}