iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >mongostat详解
  • 395
分享到

mongostat详解

2024-04-02 19:04:59 395人浏览 独家记忆
摘要

参考:Http://docs.mongoDB.org/manual/reference/program/monGostat/Fieldsmongostat outputs the following fie

参考:Http://docs.mongoDB.org/manual/reference/program/monGostat/

Fields

mongostat outputs the following fields:

mongostat详解

inserts

The number of objects inserted into the database per second. If followed by an asterisk (e.g. *), the datum refers to a replicated operation.


query

The number of query operations per second.


update

The number of update operations per second.


delete

The number of delete operations per second.


getmore

The number of get more (i.e. cursor batch) operations per second.


command

The number of commands per second. On slave and secondary systems, mongostat presents two values separated by a pipe character (e.g. |), in the fORM of local|replicated commands.


flushes

The number of fsync operations per second.


mapped

The total amount of data mapped in megabytes. This is the total data size at the time of the last mongostat call.


size

The amount of virtual memory in megabytes used by the process at the time of the last mongostat call.


non-mapped

The total amount of virtual memory excluding all mapped memory at the time of the last mongostat call.


res

The amount of resident memory in megabytes used by the process at the time of the last mongostat call.


faults

Changed in version 2.1.

The number of page faults per second.

Before version 2.1 this value was only provided for MongoDB instances running on linux hosts.


locked

The percent of time in a global write lock.

Changed in version 2.2: The locked db field replaces the locked % field to more appropriate data regarding the database specific locks in version 2.2.


locked db

New in version 2.2.

The percent of time in the per-database context-specific lock. mongostat will report the database that has spent the most time since the last mongostat call with a write lock.

This value represents the amount of time that the listed database spent in a locked state combined with the time that the mongod spent in the global lock. Because of this, and the sampling method, you may see some values greater than 100%.


idx miss

The percent of index access attempts that required a page fault to load a btree node. This is a sampled value.


qr

The length of the queue of clients waiting to read data from the MongoDB instance.


qw

The length of the queue of clients waiting to write data from the MongoDB instance.


ar

The number of active clients performing read operations.


aw

The number of active clients performing write operations.


netIn

The amount of network traffic, in bytes, received by the MongoDB instance.


This includes traffic from mongostat itself.


netOut

The amount of network traffic, in bytes, sent by the MongoDB instance.


This includes traffic from mongostat itself.


conn

The total number of open connections.


set

The name, if applicable, of the replica set.


repl

The replication status of the member.

PRI:PRIMARY

SEC:SECONDARY

REC:recovering

UNK:unknown

M:  master

RTR:mongos process (“router”)


Usage

In the first example, mongostat will return data every second for 20 seconds.

mongostat -n 20 1


In many cases, using the --discover will help provide a more complete snapshot of the state of an entire group of Machines. If a mongos process connected to a sharded cluster is running on port 27017 of the local machine, you can use the following form to return statistics from all members of the cluster:

mongostat --discover

您可能感兴趣的文档:

--结束END--

本文标题: mongostat详解

本文链接: https://www.lsjlt.com/news/38203.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • mongostat详解
    参考:http://docs.mongodb.org/manual/reference/program/mongostat/Fieldsmongostat outputs the following fie...
    99+
    2022-10-18
  • mongodb之mongostat 的字段含义解析
      作为实时监控mongodb的利器,mongostat绝对是一把利刃,简单好用,不过,要想仔细分析mongostat状态,还少不了深刻理解每一个监控项的意义。# mongostat i...
    99+
    2022-10-18
  • mongodb自带监控 mongostat数值说明
    insert:     一秒内的插入数query :     一秒内的查询数update:   ...
    99+
    2022-10-18
  • Mongodb数据库中mongostat工具用法
    mongostat是mongoDB自带的工具,用于检测mongodb的运行状态。 Test:Test/node-131 / # mongostat --helpUsage:mongostat <opt...
    99+
    2022-10-18
  • MongoDB 监控工具mongostat和mongotop的使用
    目录mongostatmongotop除了这两个工具之外,还有一些其他的命令可以查看集群的状态:db.serverStatus()db.stats()db.coll.stats()r...
    99+
    2022-11-11
  • 如何在mongodb中使用mongostat监控工具
    如何在mongodb中使用mongostat监控工具?相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。mongostat是mongodb自带的状态...
    99+
    2022-10-18
  • EventBus详解 (详解 + 原理)
    一、EventBus的使用介绍 EventBus简介 EventBus是一个开源库,由GreenRobot开发而来,是用于Android开发的 “事件发布—订阅总线”, 用来进行模块间通信、解藕。它可以使用很少的代码,来实现多组件之间...
    99+
    2023-08-31
    android
  • 详解@Override注解
    目录 1.是什么 2.为什么用 3.举例说明 1)示例一 2)示例二 3)示例三 1.是什么 @Override注解是伪代码,用于表示被标注的方法是一个重写方法。 @Override注解,只能用于标记方法,并且它只在编译期生效,不会保留...
    99+
    2023-09-24
    java
  • @Profile注解详解
    @Profile:Spring为我们提供的可以根据当前环境,动态的激活和切换一系列组件的功能;开发环境develop、测试环境test、生产环境master数据源:(/dev) (/test) (/master)@Profile:指定组件在...
    99+
    2018-01-19
    java教程 注解
  • @TableField注解详解
    @TableField(value = "email")//指定数据库表中字段名 如果数据库和实体类的字段名不一致,可以使用@TableField注解指定数据库表中字段名。  2、@TableField(exist = "false")/...
    99+
    2023-09-02
    数据库 sql java
  • @PreAuthorize注解详解
    @PreAuthorize注解会在方法执行前进行权限验证,支持Spring EL表达式,它是基于方法注解的权限解决方案。只有当@EnableGlobalMethodSecurity(prePostEnabled=true)的时候,@PreA...
    99+
    2023-09-14
    spring java mybatis
  • Spring注解详解
    概述 注释配置相对于 XML 配置具有很多的优势:它可以充分利用 Java 的反射机制获取类结构信息,这些信息可以有效减少配置的工作。如使用 JPA 注释配置 ORM 映射时,我们就不需要指定 PO 的属性名、类型等信息,如果关系表字段和...
    99+
    2023-06-03
  • Java注解详解
    目录 一、发现注解二、注解是什么1. 注解的本质2. 注解是针对Java编译器的说明 三、为什么要使用注解四、Java中常用的注解4.1 基础注解(spring-context、spring-we...
    99+
    2023-08-22
    java spring 软件测试
  • zookeeper详解
    一 zookeeper介绍         首先需要了解zookeeper是什么,zookeeper是一个分布式协调服务。所谓分布式协调主要是来解决分布式系统中多个进程之间的同步限制,防止出现脏读,例如我们常说的分布式锁。         ...
    99+
    2023-09-12
    java
  • Netplan详解
    Netplan 简介 Netplan 是一种网络配置工具,用于配置 Ubuntu 操作系统的网络接口和选项。它使用 YAML 文件来描述网络配置,提供了一种简单而直观的方式来管理网络设置。 以下是一些...
    99+
    2023-09-12
    服务器 网络 ubuntu
  • Scripting.FileSystemObject详解
    Scripting.FileSystemObject是一个用于访问文件系统的对象模型,它提供了许多方法和属性,可以对文件和文件夹进行...
    99+
    2023-09-13
    详解
  • groupby详解
    一、groupby详解 上周五同组同事有一个关于sql的bug,经leader看完后大体定位在group by语句用法错误。然后leader把我叫上一起,询问我们关于group by的用法。而我当时脑...
    99+
    2023-09-14
    java mysql sql
  • PreferenceFragment详解
    PreferenceFragment是一个用于显示应用程序设置的特殊Fragment。它可以让你方便地创建一个具有不同类型的偏好设置...
    99+
    2023-09-14
    详解
  • request.getcontextPath()详解
    request.getcontextPath()是Java Servlet中的一个方法,用于获取Web应用的上下文路径。下面是对该方...
    99+
    2023-09-14
    详解
  • JavaScript详解
    目录  一、什么是JavaScript? 二、JavaScript的引入方式  三、JavaScript的基础语法 3.1 书写语法 3.2 输出语句  3.3 变量 3.4 数据类型 3.5 运算符 3.6 流程控制语句  3.7 函数 ...
    99+
    2023-10-09
    javascript 前端 java 正则表达式
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作