Skip to content

Troubleshoot JXM metrics

Jean Bisutti edited this page Jul 12, 2023 · 5 revisions

This page aims to help to troubleshoot JMX metrics.

First, download JMX term.

After, start JMX term: java -jar jmxterm-1.0.2-uber.jar

image

Type jvms to have the PIDs of the Java applications.

image

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 evaluate an attribute: get <attribute-name>

image

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

"jmxMetrics": [
      {
        "name": "Troubleshoot JMX metric",
        "objectName": "java.lang:type=OperatingSystem",
        "attribute": "Name"
      }
]