Sun Java System Application Server Platform Edition 9 Administration Guide

Enabling and Disabling Monitoring

To configure monitoring levels using the Admin Console

To configure monitoring in the Admin Console, go to Application Server node > Configuration > Monitoring

By default, monitoring is turned off for all components and services. To turn monitoring on, select LOW or HIGH from the combo box. To turn monitoring off, select OFF from the combo box.

For details on configuring monitoring, see the online help available with the Admin Console.

Equivalent asadmin commands are get and set.

For example, to turn on monitoring for the HTTP Service, use the following asadmin command:

asadmin> set --user admin-user server.monitoring-service.module-monitoring-levels.http-service=LOW

ProcedureTo configure monitoring using the asadmin tool

Use the asadmin get and set commands to configure monitoring from the command line.

  1. Use the get command to find out what services and components currently have monitoring enabled.

    asadmin> get --user admin-user server.monitoring-service.module-monitoring-levels.*


    connector-connection-pool = OFF
    connector-service = OFF
    server.monitoring-service.module-monitoring-levels.ejb-container = OFF
    server.monitoring-service.module-monitoring-levels.http-service = OFF
    server.monitoring-service.module-monitoring-levels.jdbc-connection-pool = OFF
    server.monitoring-service.module-monitoring-levels.jms-service = OFF
    server.monitoring-service.module-monitoring-levels.jvm = OFF
    server.monitoring-service.module-monitoring-levels.orb = OFF
    server.monitoring-service.module-monitoring-levels.thread-pool = OFF
    server.monitoring-service.module-monitoring-levels.transaction-service = OFF
    server.monitoring-service.module-monitoring-levels.web-container = OFF
  2. Use the set command to enable monitoring.

    For example, to enable monitoring for the HTTP service:

    asadmin> set --user admin-user 

    To disable monitoring, use the set command and specify OFF for the monitoring level.