`
cocos
  • 浏览: 394246 次
  • 性别: Icon_minigender_1
  • 来自: 福州
社区版块
存档分类
最新评论

mongostat

阅读更多

flushes – this shows how many times data has been flushed to disk. MongoDB only physically writes data to disk every 60 seconds (by default). This has the effect of increasing performance but can decrease durability because a hard crash inbetween flushes will result in that data not being written, and therefore lost. v1.8 solves this with the option for durability but this stat shows how often mongod is flushing data to disk.
faults – the faults column shows you the number of Linux page faults per second. This is when Mongo accesses something that is mapped to the virtual address space but not in physical memory. i.e. it results in a read from disk. High values here indicate you may not have enough RAM to store all necessary data and disk accesses may start to become the bottleneck.
locked % – shows the % of time in a global write lock. When this is happening no other queries will complete until the lock is given up, or the lock owner yields. This is indicative of a large, global operation like a remove() or dropping a collection and can result in slow performance.
% idx miss – this is like we saw in the server status output except instead of an aggregate total, you can see queries hitting (or missing) the index in real time. This is useful if you’re debugging specific queries in development or need to track down a server that is performing badly.
qr|qw – when MongoDB gets too many queries to handle in real time, it queues them up. This is represented inmongostat by the read and write queue columns. When this starts to increase you will see slowdowns in executing queries as they have to wait to run through the queue. You can alleviate this by stopping any more queries until the queue has dissipated. Queues will tend to spike if you’re doing a lot of write operations alongside other write heavy ops, such as large ranged removes.
mongostat is useful because it shows what is happening in your cluster right now. This is particularly handy to quickly find out which member of your replica sets is master right now – the final column shows this. If you start seeing slowdowns or suspect a problem with MongoDB, mongostat should be your first point of call to quickly locate where the problem is.
分享到:
评论

相关推荐

    mongodb监控工具mongostat的使用及命令详解

    mongostat是mongodb自带的状态检测工具,在命令行下使用,会间隔固定时间获取mongodb的当前运行状态,并输出。 1、mongostat常用命令格式: mongostat –host 192.168.11.11:27017 –username root –password ...

    MongoDB运行状态监控、性能分析工具mongostat详解

    mongostat详解 mongostat是mongdb自带的状态检测工具,在命令行下使用。它会间隔固定时间获取mongodb的当前运行状态,并输出。如果你发现数据库突然变慢或者有其他问题的话,你第一手的操作就考虑采用mongostat来...

    mongodb-stat

    docker-mongodb-shell:在Docker容器中安装mongo shell和工具的示例

    mongodb-org-tools ,包含以下MongoDB工具:mongoimport bsondump,mongodump,mongoexport,mongofiles,mongorestore,mongostat和mongotop。 docker build --rm -t thelebster/mongo-shell-example .docker run ...

    深入云计算 MongoDB管理与开发实战详解pdf.part1

    10.2.2 mongostat查看运行中的实例统计信息 10.2.3 db.serverStatuss查看实例运行状态 10.2.4 db.stats查看数据库状态 10.2.5 第三方工具 10.3 本章小结 第5篇 架构篇 第11章 复制集 11.1 主从...

    深入云计算 MongoDB管理与开发实战详解pdf.part2

    10.2.2 mongostat查看运行中的实例统计信息 10.2.3 db.serverStatuss查看实例运行状态 10.2.4 db.stats查看数据库状态 10.2.5 第三方工具 10.3 本章小结 第5篇 架构篇 第11章 复制集 11.1 主从...

    电子书:MongoDB权威指南(中文版)

    1078.1.2 配置文件 1098.1.3 停止MongoDB 1108.2 监控 1108.2.1 使用管理接口 1108.2.2 serverStatus 1128.2.3 mongostat 1138.2.4 第三方插件 1138.3 安全和认证 1148.3.1 认证的基础知识 1148.3...

    MongoDB权威指南(中文版)高清

    1098.1.3 停止MongoDB 1108.2 监控 1108.2.1 使用管理接口 1108.2.2 serverStatus 1128.2.3 mongostat 1138.2.4 第三方插件 1138.3 安全和认证 1148.3.1 认证的基础知识 1148.3.2 认证的工作原理 ...

    基于MongoDB数据库索引构建情况全面分析

    前面的话 本文将详细介绍MongoDB数据库索引构建情况分析 概述 创建索引可以加快索引相关的查询,但是会增加磁盘空间的消耗,降低写入性能。这时,就需要评判当前索引的...mongostat是查看mongodb运行状态的程序,使用

    监控mongo状态慢查询

    mongostat是mongdb自带的状态检测工具,在命令行下使用。它会间隔固定时间获取mongodb的当前运行状态,并输出。如果你发现数据库突然变慢或者有其他问题的话,你第一手的操作就考虑采用mongostat来查看mongo的状态。...

    zabbix mongodb监控模板 mongodb版本为4.4

    参考文章链接:https://blog.csdn.net/zhangpfly/article/details/128712519 mongostat是mongodb自带的状态检测工具,可以使用这个命令获取mongodb的当前运行状态,并输出。使用这个命令获取mongodb的状态。

    使用zabbix监控mongodb的方法

    MongoDB 是一个基于分布式文件存储的数据库。由 C++ 语言编写。旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。... 1.mongostat  2.开启28017的监听端口,curl http://127.0.0.1:28017/_status  3

    MongoDB-work:各种工作位........

    mongostat-显示正在运行的mongod / mongos的状态。 bsondump-将BSON文件转换为人类可读的格式。 mongoreplay-流量捕获和重播工具。 mongotop-跟踪读取和写入数据所花费的时间。 install_compass-为您的平台安装...

    mongo工具

    mongostat-监视实时MongoDB服务器,副本集或分片群集 mongofiles-读取,写入,删除或更新文件 mongotop-监视mongo服务器上的读/写活动 在报告任何错误,改进或新功能请求 建筑工具 我们目前使用Go 1.15版构建工具。 ...

    MongoDB复制集原理详解

    主要介绍了MongoDB复制集原理详解,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧

    MongoDB的安装及配置文件选项全解

    安装部分 1. 安装包 1.1 mongodb-org 可以自动安装以下的四个包 ...其他mongodb工具,mongoimport,mongoexport,mongodump,mongrestore,mongofiles,bsondump,mongooplog,mongoperf,mongostat,mongotop,(mongosniff

Global site tag (gtag.js) - Google Analytics