Configuring JVMs in WebSphere Liberty
To monitor a JVM that runs in WebSphere Liberty, create a JVM options file with enablement statements in your Liberty server directory, and update your server.xml file to add <feature>monitor-1.0</feature> to the <featureManager> element.
About this task
Configure the server for OMEGAMON AI for JVM resource monitoring
To use JVM monitoring, you must first configure the WebSphere Liberty server instance for OMEGAMON AI for JVM resource monitoring.
It is recommend that a JVM options file named jvm.options be created in the Liberty server directory as described below:
- Using ISPF option 3.17, create a file named jvm.options in your Liberty server directory: /wlp/usr/servers/servername/jvm.options
- Add enablement statements to the jvm.options file:
- -agentpath:/rte_uss_dir/rtehome/kan/bin/IBM/libkjjagent_64.so
- -javaagent:/rte_uss_dir/rtehome/kan/bin/IBM/kjj.jar
- Each option statement must be specified on a single line. There are no continuation characters.
- The collector.id property only needs to be set if you have changed it from the default value of KJJ1.
- Liberty automatically reads the jvm.options file from the server directory when the server starts.
Enabling WebSphere Liberty Metrics Collection
To collect performance metrics for web applications, thread pools, connection pools, and session statistics in WebSphere Liberty, add the following to the <featureManager> section of your server's server.xml:
<featureManager>
<feature>monitor-1.0</feature>
</featureManager>