------------红色字体的四个field个人认为是重要参数,过高即可重启db----------------
Fields
mongostat returns values that reflect the operations over a 1 second period. When mongostat <sleeptime> has a value greater than 1, mongostat averages the statistics to reflect average operations per second.
mongostat outputs the following fields:
- inserts
-
每秒钟插入到数据库中的对象数目。如果后面跟有一个星号(即 *),则该数据表示一个复制操作。
- query
-
每秒钟的查询操作数目。
- update
-
每秒钟的更新操作数目。
- delete
-
每秒钟的删除操作数目。
- getmore
-
每秒钟的获取更多(如光标批次)操作数目。
- 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
-
每秒钟的 fsync 操作数目。
- 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.
- res
-
The amount of (resident) memory in megabytes used by the process at the time of the last mongostat call.
- faults
-
2.1 版已更改。
每秒钟的页面错误数目。
在 2.1 版之前,该值仅为在 Linux 主机上运行的 MongoDB 实例提供。
- locked
-
全局写入锁定的时间百分比。
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
-
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
-
访问加载 btree 节点时需要页面故障的尝试的索引百分比。这是一个采样值。
- qr
-
客户端等待从 MongoDB 实例读取数据的队列长度。
- qw
-
客户端等待向 MongoDB 实例写入数据的队列长度。
- ar
-
执行读取操作的活动客户端的数目。
- aw
-
执行写入操作的活动客户端的数目。
- 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
-
打开连接的总数。
- set
-
副本集的名称(如适用)。