blob: 9b8be68083d3ae3967ca6f91511f3f06f60f8249 [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[497],{894:function(t,a,e){"use strict";e.r(a);var s=e(29),n=Object(s.a)({},(function(){var t=this,a=t._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"jmx-工具"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#jmx-工具"}},[t._v("#")]),t._v(" JMX 工具")]),t._v(" "),a("p",[t._v("Java VisualVM 提供了一个可视化的界面,用于查看 Java 应用程序在 Java 虚拟机(JVM)上运行的详细信息,并对这些应用程序进行故障排除和分析。")]),t._v(" "),a("h2",{attrs:{id:"使用"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#使用"}},[t._v("#")]),t._v(" 使用")]),t._v(" "),a("p",[t._v("第一步:获得 IoTDB-server。")]),t._v(" "),a("p",[t._v("第二步:编辑配置文件")]),t._v(" "),a("ul",[a("li",[a("p",[t._v("IoTDB 在本地\n查看"),a("code",[t._v("$IOTDB_HOME/conf/jmx.password")]),t._v(",使用默认用户或者在此添加新用户\n若新增用户,编辑"),a("code",[t._v("$IOTDB_HOME/conf/jmx.access")]),t._v(",添加新增用户权限")])]),t._v(" "),a("li",[a("p",[t._v("IoTDB 不在本地\n编辑"),a("code",[t._v("$IOTDB_HOME/conf/datanode-env.sh")]),t._v("\n修改以下参数:")])])]),t._v(" "),a("div",{staticClass:"language- line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[t._v('JMX_LOCAL="false"\nJMX_IP="the_real_iotdb_server_ip" # 填写实际 IoTDB 的 IP 地址\n')])]),t._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[t._v("1")]),a("br"),a("span",{staticClass:"line-number"},[t._v("2")]),a("br")])]),a("p",[t._v("查看"),a("code",[t._v("$IOTDB_HOME/conf/jmx.password")]),t._v(",使用默认用户或者在此添加新用户\n若新增用户,编辑"),a("code",[t._v("$IOTDB_HOME/conf/jmx.access")]),t._v(",添加新增用户权限")]),t._v(" "),a("p",[t._v("第三步:启动 IoTDB-server。")]),t._v(" "),a("p",[t._v("第四步:使用 jvisualvm")]),t._v(" "),a("ol",[a("li",[a("p",[t._v("确保安装 jdk 8。jdk 8 以上需要 "),a("a",{attrs:{href:"https://visualvm.github.io/download.html",target:"_blank",rel:"noopener noreferrer"}},[t._v("下载 visualvm"),a("OutboundLink")],1)])]),t._v(" "),a("li",[a("p",[t._v("打开 jvisualvm")])]),t._v(" "),a("li",[a("p",[t._v("在左侧导航栏空白处右键 -> 添加 JMX 连接\n"),a("img",{staticStyle:{width:"100%","max-width":"300px","max-height":"600px","margin-left":"auto","margin-right":"auto",display:"block"},attrs:{src:"https://user-images.githubusercontent.com/19167280/81462914-5738c580-91e8-11ea-94d1-4ff6607e7e2c.png"}})])]),t._v(" "),a("li",[a("p",[t._v("填写信息进行登录,按下图分别填写,注意需要勾选”不要求 SSL 连接”。\n例如:\n连接:192.168.130.15:31999\n用户名:iotdb\n口令:passw!d\n"),a("img",{staticStyle:{width:"100%","max-width":"300px","max-height":"600px","margin-left":"auto","margin-right":"auto",display:"block"},attrs:{src:"https://user-images.githubusercontent.com/19167280/81462909-53a53e80-91e8-11ea-98df-0012380da0b2.png"}})])])])])}),[],!1,null,null,null);a.default=n.exports}}]);