Author: Padmini K
Co-authors: Sunjit Tara, Sridhar Venkatesh
SAP Java NetWeaver is a Java-based application server that integrates business applications and technologies. It ensures smooth and scalable operation of the applications in distributed, enterprise-level environments. The Java stack in NetWeaver handles the execution of Java-based applications and services, which provides the foundation for SAP's Java applications such as SAP Portal and SAP Commerce.
You can monitor SAP Java NetWeaver and extract metrics by utilizing the powerful Java Management Extensions (JMX) monitoring capabilities of Instana. Monitoring JMX metrics provides immense value in both production environments and business operations. Instana enables you to gather metrics including the key performance indicators such as thread count and CPU time, disk space usage, and SAP-specific metrics such as port status and cluster health. By proactively monitoring these KPIs, organizations can ensure optimal performance, identify bottlenecks early, and prevent potential downtimes.
Enabling JMX monitoring for NetWeaver
The JMX technology helps with the management and monitoring of Java applications, devices, and services. It exposes various aspects of an application's runtime environment, such as memory usage, thread counts, and custom business metrics. These aspects can be used to monitor the health and performance of Java applications in real-time.
JMX in SAP Java NetWeaver is typically configured through the Java Virtual Machine (JVM) settings. First, enable JMX on the JVM and then configure the JVM settings to expose the JMX metrics. After you make these changes, restart the SAP Java instance.
After enabling JMX, you can query MBeans to get various metrics such as memory usage, thread counts, garbage collection statistics, and other application-specific metrics.
The Instana agent that is configured to collect JMX data extracts JVM metrics as well as SAP-specific metrics that are exposed through JMX MBeans.
Configuring Instana for JMX monitoring
To enable JMX monitoring in Instana for your SAP Java NetWeaver instance, see the JMX Custom Metrics configuration template.
Specify the following details in the configuration:
· object_name: Specifies the JMX object (MBean) you want to monitor.
· metrics: Defines the attributes (for example, Thread Count and State) that you want to collect from each MBean.
· type: Specify either delta (for metrics that report changes over time) or absolute (for absolute values).
The following figure shows a sample configuration:
Viewing Metrics in Instana
After you configure Instana for JMX monitoring, Instana starts collects the JMX metrics. You can view the metrics in the SAP JVM section under the Instana Agent as shown in following figure.
Additionally, you can create custom dashboards in Instana to visualize these metrics as required for your business needs as shown in the following figure.
For more information on SAP monitoring, see the following topic:
Configuring Instana for monitoring SAP systems