Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Info

The Application Server previously had the capability of only monitoring statistics through WSO2's Business Activity Monitor (BAM). However, now the Application Server 5.2.0 has the capability of monitoring web application statistics as well using BAM 2.3.0.

...

Step 2: Configuring the web application that need monitoring

Use either one of the following approaches to configure the web application before deploying any web application, to make AS ready to publish the data to BAM.

  1. Web Application Statistics Monitoring
  2. Enabling monitoring via the  web.xml

...

Info

The UI has the precedence over web.xml configurations. As a result, if you disable web apps statics monitoring from the UI configurations in the web.xml will not work.

Enabling monitoring via the UI
  1. On the Main menu, under the Applications menu, click List.
  2. Click the Context link of the respective web application.
    The selected application dashboard will appear. 
     
  3. Select the Enable BAM statistics checkbox.

...

  1. Start BAM. For more information, see Starting the server.
  2. If you need to change databases which stores statistic data:
    • Create a database.
    • Configure the database in {BAM_HOME}/repository/conf/datasources/master-datasources.xml as WSO2BAM_DATASOURCE.
  3. Log into the BAM management console.

  4. On the Main menu, under BAM Toolbox, click Add.

  5. Select the  ToolBox From URL option.

  6. Enter the URL of the WebApps_Stats_Monitoring toolbox.

  7. Click Install.
    Refresh after a few seconds to see if the toolbox is installed.

  8. Send a few request from AS (Invoke any web application that has enabled statistics monitoring).
  9. On the Main menu, under  Analytics, click List.
    The webapp statistics will be displayed.
  10. Execute the webapp statistics or schedule its running sequence.

...