AppDynamics Application Intelligence Platform
3.9.x Documentation
Utilizing JMX Metrics - 4:02
This topic discusses how to provide visibility into the JMX metrics for your JVM and application server.
As discussed at Monitor JVMs and Monitor Java App Servers, AppDynamics uses JMX (Java Management Extensions) to monitor Java applications.
JMX uses objects called MBeans (Managed Beans) to expose data and resources from your application. You can use one or more MBean attributes to create persistent JMX metrics in AppDynamics. In addition, you can import and export JMX metric configurations from one version or instance of AppDynamics to another.
AppDynamics can capture MBean data, when these conditions are met:
Additional MBean data may be available when a monitored business application exposes Managed Beans (MBeans) using standard JMX. See the MBean documentation.
AppDynamics provides preconfigured JMX metrics for several common app server environments:
For application server environments that are not instrumented by default, you can configure new JMX metrics configurations. You can also add new JMX metric rules. See Configure JMX Metrics from MBeans. You can also add new metric rules to the existing set of configurations. For example, Glassfish JDBC connection pools can be manually configured using MBean attributes and custom JMX metrics.
You can view, delete, and edit the existing JMX metric rules.
You can view MBean-based metrics using the Node Dashboard and the Metric Browser. In addition, the MBean Browser enables you to view all the MBeans defined in the system.
You can monitor the trend of a particular MBean attribute over time using the Live Graph.
Click the JMX tab.
Click the MBean Browser sub-tab.
Alternate Path to JMX Metrics
Alternatively, in the left navigation pane, click Servers -> App Servers -> JMX. The JMX window appears
If you haven't already selected a node, you are prompted to select a node and then a tier and then the JMX window appears
When troubleshooting or monitoring a Java-based system, you may want to change the values of composite mBeans and execute mBean methods. Using the JMX window, you can accomplish these tasks.
Prerequisite for Setting MBean Attributes and Invoking Operations
Using the JMX viewer, you can invoke an mBean operation, specify standard java language strings for the parameters, and view the return values from the mBean invocation.
When the MBean is a complex type, you can view its details by double-clicking it as shown below.
Required User Permissions
In addition to the preconfigured metrics, you can define a new persistent metric using a JMX Metric Rule that maps a set of attributes from one or more MBeans.
You can create a JMX metric from any MBean attribute or set of attributes. Once you create a persistent JMX metric, you can:
The JMX Metrics Configuration panel is the central configuration interface for all of the JMX metrics that AppDynamics reports. You can use the MBean Browser to view MBeans exposed in your environment. From there, you can access the JMX Metrics Configuration panel by selecting an MBean attribute and clicking Create Metric.
For details, see Configure JMX Metrics from MBeans.
Once you create a custom JMX metric configuration, you can keep the configuration for upgrade or other purposes. The JMX metric information is stored in an XML file that you can export and then import to another AppDynamics system. For instructions see Create, Import or Export JMX Metric Configurations.
Java Management Extensions (JMX) is a public specification for monitoring and managing Java applications. Through JMX, Appdynamics can access Java class properties that collect management data, such as the resources your application is consuming.
For information on the specific metrics available for you environment, see the documentation provided by your vendor.