-
Notifications
You must be signed in to change notification settings - Fork 201
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
Type jvms
to have the PIDs of the Java applications.
Open a connection to your application: open <PID>
.
Display the available domains: domains
Select the wanted domain: domain <domain-name>
Display the MBeans for this domain: beans
Select the wanted MBean: bean <object-name>
Display the attributes of this bean: info
You can evaluate an attribute: get <attribute-name>
The JMX metrics configuration has to contain available objectName and attribute name.
"jmxMetrics": [
{
"name": "Troubleshoot JMX metric",
"objectName": "java.lang:type=OperatingSystem",
"attribute": "Name"
}
]