Monitor the Performance of an Application Server
Oracle Application Performance Monitoring lets you view details about an Application Server.
Collect Thread Profiler Data for an Application Server
You can collect detailed data that are not generally captured by Oracle Application Performance Monitoring through the Thread Profiler.
You can have a maximum of 5 Thread Profiler schedules defined for an APM agent at a time. In case you already have five thread profiler schedules, ensure you delete an old schedule before creating another one.
To define a thread profiler schedule:
Collect JFR Data for an Application Server
Your Oracle Application Performance Monitoring Java agent can collect diagnostic data using the Java Flight Recorder (JFR).
Prerequisites:
-
JFR dump is supported only on HotSpot JDKs (Sun, JRockit, Oracle JDKs), and not on IBM JDK.
-
JFR dumps can be analyzed through JMC (Java Mission Control). For Oracle JDK 1.7.0_04 and later (but earlier than JDK 1.8.0_40), JVM process should be run with the following Java options:
-XX:+UnlockCommercialFeatures -XX:+FlightRecorder
These Java options are not required for JDK 1.8.0_40 and later.
-
Before you can collect JFR data, ensure that the JFR is running.
To collect JFR data:
Viewing and Downloading JFR Dump
- From the left navigation menu, select Diagnostic Snapshots, and select JFR Dumps.
- To download the
.jfr
file, click the download button at the right end of the respective JFR Dump row. - To view the JFR Summary, click the name of the JFR Dump. The JFR Summary page is displayed.
- In the JFR Summary page, click the download button to download the JFR Report.
Collect Class Histogram for an Application Server
Your Oracle Application Performance Monitoring Java agent can collect Class Histogram data for analysis of the performance of your application server.
Prerequisites:
- Class Histogram is supported only on Sun and JRockit JDKs.
-
Ensure that
tools.jar
is set in the Java classpath.
To collect Class Histogram for an application server:
Collect Heap Dump for an Application Server
Your Oracle Application Performance Monitoring Java agent can collect Heap Dump data for analysis of the performance of your application server.
Prerequisites:
-
Heap Dump can be taken on Sun (V1.6 or later), JRockit and IBM (v1.6 and above) JDKs.
-
In case of IBM 1.6 JDK, set the environment variable
IBM_HEAPDUMPDIR
to the directory in which the Heap Dump has to be stored. If this variable is not set, the Heap Dump will be stored in the directory from where the application server is running.
To collect Heap Dump:
Integrate Application Performance Monitoring Events with JFR
Application Performance Monitoring events are integrated with JFR by default.
APM Events are integrated with JFR using Java Mission Control (JMC). The data captured by the APM Agent can then be viewed on JMC, thereby providing more insight into all APM Events.
-
Ensure that the JFR support is set to ON.
-
A JFR recording should be running.
-
In the
Properties.json
file located in theapmagent/AdminServer
folder, ensure that the following property is set toTRUE
:
By default, this property is set tooracle.apmaas.agent.deepdive.jfrEvent
TRUE
, which means that the JFR- APM Event integration is enabled.
To view Application Performance Monitoring Events in JMC: