Sun Java System Web Server 7.0 Update 5 Administrator's Guide

Monitoring The Server Statistics

The server statistics can be viewed across the following categories:

Table 13–1 Monitoring Categories

Category

Description

General Statistics 

General Statistics shows overall Request, Error and Response statistics for the configuration.  

Instance Statistics 

Instance Statistics shows overall Request, Error and Response statistics for the instances along with information on server crash and virtual server count. 

Virtual Server Statistics 

Virtual Server Statistics shows overall Request, Error and Response statistics for the virtual servers along with the number of open connections and total bytes received/transmitted. 

ProcedureViewing The Statistics

  1. Click the Monitoring tab.

  2. Select the configuration from the list.

  3. View General, Instance and Virtual Server Statistics.


    Note –

    Using CLI

    You can monitor the server using the get-config-stats, get-virtual-serevr-stats, get-webapp-stats and get-servlet-stats commands.

    • wadm> get-config-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --node=cat.test.com --ssl=true

      The preceding command will fetch the statistics for the given instance. To see the statistics at the configuration level, the above command can be used without the --node option.

    • wadm> get-virtual-server-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --vs=www.test.com --node=cat.test.com --ssl=true

      The preceding command will fetch the aggregated virtual server statistics for a given configuration across all the nodes where the configuration has been deployed. To see the statistics for a configuration deployed on a given node --node option can be used.

    • wadm> get-webapp-stats --user=admin --password-file=admin.passwd --host=localhost --port=8989 --config=test --node=cat.test.com --vs=www.test.com --uri=/foo --ssl=true

      The preceding command will fetch the statistics for a given web application deployed on the given virtual server of the given instance. To see the aggregated web application statistics for a given configuration across all the nodes where the configuration has been deployed, the previous command can be used without the --node option.

    • wadm> get-servlet-stats --user=admin --password-file=admin.pwd --host=localhost --port=8989 --config=test --node=cat.test.com --vs=www.test.com --uri=/servlet-simple --ssl=true

      The preceding command will fetch the statistics for the servlet servlet-simple.


ProcedureViewing the Monitoring stats-xml File

  1. From the Common Tasks page, click the Configuration tab and select the configuration from the list.

  2. Click the Edit Virtual Server tab.

  3. Click the Monitoring Setting tab.

  4. Enable the XML Report check box and provide the publishing URI.

  5. Click the Save button.

  6. Click the Deployment Pending link at the top right of the screen.

  7. Click the Deploy button.

    For example, if you have configured the default URI, then you can view the stats-xml file by typing the following URL in the browser.

    http://host:port/stats-xml


    Note –

    If you want to view the .dtd of the stats-xml file, type the following URL in the browser.

    http://host:port/stats-xml/yyy.dtd