Sun Java System Web Server 6.1 SP6 NSAPI Programmer's Guide


Applicable in Init-class directives.

The stats-init function enables reporting of performance statistics in XML format. The actual report is generated by the stats-xml function in obj.conf.


The following table describes parameters for the stats-init function.

Table 2–16 stats-init parameters




Period in seconds between statistics updates within the server. Set higher for better performance, lower for more frequent updates. The minimum value is 1; the default is 5.


Maximum number of virtual servers for which statistics are tracked. This number should be set higher than the number of virtual servers configured. Smaller numbers result in lower memory usage. The minimum value is 1; the default is 1000.


Enables NSAPI performance profiling using buckets if set to yes. This can also be enabled through the perf-init Init SAF. The default is no, which results in slightly better server performance.


Init fn="stats-init" update-interval="5" virtual-servers="2000" profiling="yes"