Sun Java System Web Server 7.0 Update 5 Performance Tuning, Sizing, and Scaling Guide

Enabling Statistics

Statistics are activated by default on Web Server. However, if you have disabled them, you need to enable them again to monitor your server for performance. To enable statistics, use Admin Console or the wadm command-line utility (CLI).


Note –

Collecting statistics causes a slight hit to performance.


ProcedureTo Enable Statistics from the Admin Console

  1. From the Admin Console Common Tasks page, select the configuration.

  2. Click Edit Configuration.

  3. Click the General tab.

  4. Click the Monitoring Settings sub tab.

  5. On the Monitoring Settings page, under General Settings, select the Statistics Enabled checkbox.

  6. Configure the interval and profiling.

    • The Interval is the period in seconds between statistics updates. A higher setting with less frequent updates improves performance. The minimum value is .001 seconds; the default value is 5 seconds.

    • Profiling is activated by default. Deactivating it results in slightly less monitoring overhead.

  7. Restart the server.

ProcedureTo Enable Statistics from the CLI

  1. Enter the following CLI command to enable statistics collection:

    ./wadm set-stats-prop --user=admin_user –password-file=password-file --config=myconfig enabled=true

    To disable statistics, set enabled to false.

  2. To set the interval and enable profiling, use the set-stats-prop interval and profiling properties. For more information, see the help for set-stats-prop.

  3. Restart the server.