MongoDB性能监控(2)—mongotop命令
-
1、Mongotop命令简介
- mongotop也是mongodb下的一个内置工具,mongotop提供了一个方法,用来跟踪一个MongoDB的实例,查看哪些大量的时间花费在读取和写入数据。 mongotop提供每个集合的水平的统计数据。默认情况下,mongotop返回值的每一秒。
2、帮助命令及参数说明
<code>[root@ggtest1 bin]# mongotop --help Usage: mongotop <options> <polling interval in seconds> Monitor basic usage statistics for each collection. See http://docs.mongodb.org/manual/reference/program/mongotop/ for more information. general options: --help 显示帮助信息 --version 显示版本信息 verbosity options: -v, --verbose=<level> 详细模式,多个v可以增加详细输出,如-vvvv --quiet 隐藏所有日志输出 connection options: -h, --host=<hostname> 主机信息(主机名或IP地址) --port=<port> 端口 kerberos options: --gssapiServiceName=<service-name> service name to use when authenticating using GSSAPI/Kerberos ('mongodb' by default) --gssapiHostName=<host-name> hostname to use when authenticating using GSSAPI/Kerberos (remote server's address by default) ssl options: --ssl connect to a mongod or mongos that has ssl enabled --sslCAFile=<filename> the .pem file containing the root certificate chain from the certificate authority --sslPEMKeyFile=<filename> the .pem file containing the certificate and key --sslPEMKeyPassword=<password> the password to decrypt the sslPEMKeyFile, if necessary --sslCRLFile=<filename> the .pem file containing the certificate revocation list --sslAllowInvalidCertificates bypass the validation for server certificates --sslAllowInvalidHostnames bypass the validation for server name --sslFIPSMode use FIPS mode of the installed openssl library authentication options: -u, --username=<username> 指定链接的用户名 -p, --password=<password> 指定链接的用户密码 --authenticationDatabase=<database-name> 指定用户认证库 --authenticationMechanism=<mechanism> 指定认证机制 output options: --locks 查看数据库锁情况 -n, --rowcount=<count> 指定显示行数 --json 输出格式为JSON </code>
本帖部分内容已隐藏,请登入并回覆,以查看隐藏内容!
-
学习字数补丁。。。。。
-
性能系列文章...收藏
-
想看~快給我看~芝麻開門
-
正好需要相關的說明,感謝囉
-
-authenticationDatabase=admin
-
本帖下載内容已隐藏,请登入以查看隐藏内容!7月之前想看~快給我看~芝麻開門
-
想看~快給我看~芝麻開門
-
很好。学习一下。
-
正在学习中,向大神求教了
-
学习中,十分感谢!
-
想看~快給我看~芝麻開門
-
。。。。。。看看