Fix Pack 8550

Liberty profile: Multiple components monitoring

You can filter the components that you want to monitor by using the monitor-1.0 feature in the Liberty profile. The components to be filtered must be configured in the server.xml file.

  1. To specify the components that you want to filter, add the following code to the server.xml file.
    <server description="new server">
    
         <featureManager>
         <feature>jsp-2.2</feature>		
         <feature>jdbc-4.0</feature>		
         <feature>monitor-1.0</feature>	 
    	
         <monitor  filter="JVM,ThreadPool,WebContainer,Session,ConnectionPool"/>
    </server>	

    By default, if the filters are not provided in the <monitor> tag, all the components that are currently monitored as part of the monitor-1.0 feature are monitored. If the <monitor> tag is present but without any filters specified, then no component is monitored. You can also specify the components that you want to monitor by providing the group name as part of the filter.

    For example: If you want to monitor only the JVM and WebContainer components, specify the components in the server.xml file as follows:
    <monitor filter="JVM,WebContainer"/>
  2. To remove components from monitoring.

    To stop monitoring a component, you must remove the component from the filter group at run time.

    For example: The following filter configuration monitors the JVM, ThreadPool, WebContainer, Session and ConnectionPool components:
    <monitor  filter="JVM,ThreadPool,WebContainer,Session,ConnectionPool"/>
    To stop monitoring the components WebContainer and Session, remove those components from the filter configuration:
    <monitor filter="JVM,ThreadPool,ConnectionPool" />
  3. To enable monitoring of components at run time.

    If you want to enable monitoring for specific components at run time, you can specify the components in the monitor tag at run time.

    The data that is collected by the filtering components is available as MXBeans. For more information about the various MXBeans, see Monitoring the Liberty profile.
    Fix Pack 8550 Note: Currently, fine-grained monitoring is supported only at the component level (such as WebContainer, ThreadPool, JVM) and not at the counter level.

Icon that indicates the type of topic Reference topic

Terms and conditions for information centers | Feedback


Timestamp icon Last updated: Monday, 21 April 2014
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=phil&product=was-base-iseries&topic=rwlp_mon_finegrain
File name: rwlp_mon_finegrain.html