Monitoring with monitor-1.0

You can use the monitor-1.0 feature to monitor the Liberty runtime environment.

Pourquoi et quand exécuter cette tâche

To enable monitoring for your Liberty server, you add monitor-1.0 Liberty feature in the server.xml file.

The monitor-1.0 feature provides monitoring support for user runtime components.
  • JVM
  • Web applications
  • Thread pool
  • Session management
  • ConnectionPool

For information about features, see Fonctions Liberty.

Procédure

  1. Add the monitor-1.0 feature to your server configuration and the monitoring starts.
    Remarque : 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.
  2. Monitoring data is reported as standard MXBeans. Use a tool such as JConsole to connect to the JVM and look at the performance data by clicking each attribute of the MXBean.
  3. Facultatif : The same data is available with traditional PMI Mbean (Perf MBean). Note that the Perf MBean is stabilized.

Icône indiquant le type de rubrique Rubrique Tâche

Nom du fichier : twlp_monitor10.html