可以使用下面命令:
db.adminCommand("top")
例如:
use admin
db.runCommand( { top: 1 } )
TOP 命令的监控输出信息主要有以下几项:
total
readLock
writeLock
queries
getmore
insert
update
remove
commands
db.adminCommand("top")
例如:
use admin
db.runCommand( { top: 1 } )
TOP 命令的监控输出信息主要有以下几项:
total
readLock
writeLock
queries
getmore
insert
update
remove
commands
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/15498/viewspace-2120216/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/15498/viewspace-2120216/