You can use the monitor-1.0
feature to monitor the Liberty runtime environment. To enable
monitoring, add the monitor-1.0
Liberty feature to the
server.xml file.
The latest documentation
about monitoring Liberty JMX metrics is
available on the Open Liberty website.
Procedure
-
Add the
monitor-1.0
feature to your server configuration and the monitoring
starts.
Note: If you launch the server by not using the server script (server.sh or
server.bat) on a Java virtual machine (JVM), ensure that the JavaAgent is configured for
JVM as given in the following example: agentlib=-javaagent:<path to liberty
install>/bin/tools/ws-javaagent.jar.
-
Connect to the JVM and look at the performance data.
You can use a tool such as JConsole to connect to the JVM and look at the performance data by clicking
each attribute of the MXBean.
Monitoring data is reported as standard Beans.
The following MXBeans provide monitoring for the specified runtime components:
- Optional:
The same data is available with traditional PMI Mbean (Perf MBean). Note that the Perf MBean is
stabilized.