blob: e2e9fa25843ced35387185acc9784f0e5c4905ae [file] [log] [blame]
(window.webpackJsonp=window.webpackJsonp||[]).push([[311],{707:function(e,a,t){"use strict";t.r(a);var s=t(29),n=Object(s.a)({},(function(){var e=this,a=e._self._c;return a("ContentSlotsDistributor",{attrs:{"slot-key":e.$parent.slotKey}},[a("h1",{attrs:{id:"jmx-tool"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#jmx-tool"}},[e._v("#")]),e._v(" JMX Tool")]),e._v(" "),a("p",[e._v("Java VisualVM is a tool that provides a visual interface for viewing detailed information about Java applications while they are running on a Java Virtual Machine (JVM), and for troubleshooting and profiling these applications.")]),e._v(" "),a("h2",{attrs:{id:"usage"}},[a("a",{staticClass:"header-anchor",attrs:{href:"#usage"}},[e._v("#")]),e._v(" Usage")]),e._v(" "),a("p",[e._v("Step1: Fetch IoTDB-sever.")]),e._v(" "),a("p",[e._v("Step2: Edit configuration.")]),e._v(" "),a("ul",[a("li",[a("p",[e._v("IoTDB is LOCAL\nView "),a("code",[e._v("$IOTDB_HOME/conf/jmx.password")]),e._v(", and use default user or add new users here.\nIf new users are added, remember to edit "),a("code",[e._v("$IOTDB_HOME/conf/jmx.access")]),e._v(" and add new users' access")])]),e._v(" "),a("li",[a("p",[e._v("IoTDB is not LOCAL\nEdit "),a("code",[e._v("$IOTDB_HOME/conf/iotdb-env.sh")]),e._v(", and modify config below:")])])]),e._v(" "),a("div",{staticClass:"language- line-numbers-mode"},[a("pre",{pre:!0,attrs:{class:"language-text"}},[a("code",[e._v('JMX_LOCAL="false"\nJMX_IP="the_real_iotdb_server_ip" # Write the actual IoTDB IP address\n')])]),e._v(" "),a("div",{staticClass:"line-numbers-wrapper"},[a("span",{staticClass:"line-number"},[e._v("1")]),a("br"),a("span",{staticClass:"line-number"},[e._v("2")]),a("br")])]),a("p",[e._v("View "),a("code",[e._v("$IOTDB_HOME/conf/jmx.password")]),e._v(", and use default user or add new users here.\nIf new users are added, remember to edit "),a("code",[e._v("$IOTDB_HOME/conf/jmx.access")]),e._v(" and add new users' access")]),e._v(" "),a("p",[e._v("Step 3: Start IoTDB-server.")]),e._v(" "),a("p",[e._v("Step 4: Use jvisualvm")]),e._v(" "),a("ol",[a("li",[a("p",[e._v("Make sure jdk 8 is installed. For versions later than jdk 8, you need to "),a("a",{attrs:{href:"https://visualvm.github.io/download.html",target:"_blank",rel:"noopener noreferrer"}},[e._v("download visualvm"),a("OutboundLink")],1)])]),e._v(" "),a("li",[a("p",[e._v("Open jvisualvm")])]),e._v(" "),a("li",[a("p",[e._v("Right-click at the left navigation area -> Add JMX connection\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/81464569-725e0200-91f5-11ea-9ff9-49745f4c9ef2.png"}})])]),e._v(" "),a("li",[a("p",[e._v('Fill in information and log in as below. Remember to check "Do not require SSL connection".\nAn example is:\nConnection:192.168.130.15:31999\nUsername:iotdb\nPassword: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/81464639-ed271d00-91f5-11ea-91a0-b4fe9cb8204e.png"}})])])])])}),[],!1,null,null,null);a.default=n.exports}}]);