ITPub博客

首页 > 数据库 > NoSQL > MongoDB如何使用top命令监控数据库

MongoDB如何使用top命令监控数据库

原创 NoSQL 作者:chenfeng 时间:2016-06-15 15:53:34 0 删除 编辑
可以使用下面命令:
db.adminCommand("top")
例如:
use admin
db.runCommand( { top: 1 } )




TOP 命令的监控输出信息主要有以下几项:
total

readLock

writeLock

queries

getmore

insert

update

remove

commands

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/15498/viewspace-2120216/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论
交流MySQL,PolarDB/PolarDB-X,PostgreSQL,MongoDB和Redis技术。

注册时间:2015-12-07

  • 博文量
    784
  • 访问量
    2690841