+

Search Tips   |   Advanced Search

Monitoring the Liberty profile

We can use the monitor-1.0 feature to monitor the server runtime environment.

To enable monitoring for the Liberty profile, we add monitor-1.0 Liberty feature in server.xml.

The monitor-1.0 feature provides monitoring support for user runtime components.

For more details, see Liberty features.

  1. Add the monitor-1.0 feature and the monitoring starts.

    Note: If you launch the server by not using the server script (server.sh or server.bat) on a 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.

  2. Monitoring data is reported as standard MXBeans.

  3. We can use JConsole to connect to JVM and look at the performance data by clicking each attribute of the MXBean.

    The MXBeans for monitoring are as following:

  4. Optional: The same data is available with traditional PMI Mbean (Perf MBean).


Subtopics

Tasks:

  • Access local and JMX REST connectors