You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@iotdb.apache.org by GitBox <gi...@apache.org> on 2020/05/09 05:59:43 UTC

[GitHub] [incubator-iotdb] qiaojialin commented on a change in pull request #1178: Update JMX User Guide document

qiaojialin commented on a change in pull request #1178:
URL: https://github.com/apache/incubator-iotdb/pull/1178#discussion_r422457012



##########
File path: docs/zh/UserGuide/6-System Tools/3-JMX Tool.md
##########
@@ -23,32 +23,33 @@
 
 Java VisualVM提供了一个可视化的界面,用于查看Java应用程序在Java虚拟机(JVM)上运行的详细信息,并对这些应用程序进行故障排除和分析。
 
-## 配置
-
-JMX 访问权限认证设置默认打开,因此你需要编辑`iotdb-engine.properties`中的 JMX 用户名和密码。相关配置项包括:
-
-* jmx\_user
+## 使用
 
-|名字| jmx\_user |
-|:---:|:---|
-|描述| JMX配置中的用户名 |
-|类型| String |
-|默认值| admin |
-|改后生效方式|重启服务器生效|
+第一步:获得IoTDB-server。
 
-* jmx\_password
+第二步:编辑配置文件
 
-|名字| jmx\_password |
-|:---:|:---|
-|描述| JMX配置中的密码 |
-|类型| String |
-|默认值| password |
-|改后生效方式|重启服务器生效|
+* IoTDB在本地
+查看`$IOTDB_HOME/conf/jmx.password`,使用默认用户或者在此添加新用户
+若新增用户,编辑`$IOTDB_HOME/conf/jmx.access`,添加新增用户权限
 
-## 使用
+* IoTDB不在本地
+编辑`$IOTDB_HOME/conf/iotdb-env.sh`
+修改以下参数:
+```
+JMX_LOCAL="false"
+JMX_IP="the_real_iotdb_server_ip"  # 填写实际IoTDB的IP地址
+```
+查看`$IOTDB_HOME/conf/jmx.password`,使用默认用户或者在此添加新用户
+若新增用户,编辑`$IOTDB_HOME/conf/jmx.access`,添加新增用户权限
 
-第一步:启动IoTDB server。
+第三步:启动IoTDB-server。
 
-第二步:建立连接。对于本地的监控,不需要手动配置连接。对于远程的监控,可以添加远程的ip地址,并将端口配置为`31999`。
+第四步:使用jvisualvm
+1. 确保安装jdk

Review comment:
       ```suggestion
   1. 确保安装jdk 8,jdk 8以上需要下载 visualvm https://visualvm.github.io/download.html
   ```




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org