Sun Java System Web Proxy Server 4.0.3 2006Q2 Administration Guide

ProcedureTo enable statistics using stats-xml

Steps
  1. Under the default object in obj.conf, add the following line:


    NameTrans fn="assign-name" name="stats-xml" from="
    (/stats-xml|/stats-xml/.*)"
  2. Add the following Service function to obj.conf:

    <Object name="stats-xml">

    Service fn="stats-xml"

    </Object>

  3. Add the stats-init SAF to magnus.conf.

    Here is an example of stats-init in obj.conf:

    Init profiling="on" fn="stats-init" update-interval="5"

    The above example shows you can also designate the following:

    • update-interval. The period in seconds between statistics updates. A higher setting (less frequent) will be better for performance. The minimum value is 1; the default value is 5.

    • profiling. Activate NSAPI performance profiling. The default is “no,” which results in slightly better server performance. However, if you activate statistics through the user interface, profiling is turned on by default.