Troubleshoot JMX metrics - microsoft/ApplicationInsights-Java GitHub Wiki

This page aims to help to troubleshoot JMX metrics.

First, download JMXTerm.

After, start JMXTerm: java -jar jmxterm-1.0.2-uber.jar

image

Type jvms to have the PIDs of the Java applications.

image

The jvms command may not work (see). In this case, you can use the jcmd or jps Java command to retrieve the PID of your application before using JMXTerm.

Open a connection to your application: open <PID>.

image

Display the available domains: domains

image

Select the wanted domain: domain <domain-name>

image

Display the MBeans for this domain: beans

image

Select the wanted MBean: bean <object-name>

image

Display the attributes of this bean: info

image

You can then evaluate an attribute: get <attribute-name>

image

JMXTerm has added a : at the end of the objectName.

The JMX metrics configuration has to contain available objectName and attribute name.

"jmxMetrics": [
      {
        "name": "Troubleshoot JMX metric",
        "objectName": "java.lang:type=OperatingSystem",
        "attribute": "Name"
      }
]
⚠️ **GitHub.com Fallback** ⚠️