Conguration
Youmust specify all conguration information for performance buckets in the magnus.conf
andobj.conf les. Only the default-bucket is automatically enabled.
First,you must enable performance statistics collection and perfdump.
Thefollowing examples show how to dene new buckets in magnus.conf:
Init fn="define-perf-bucket"name="acl-bucket"description="ACL bucket"
Init fn="define-perf-bucket"name="file-bucket"description="Non-cached responses"
Init fn="define-perf-bucket"name="cgi-bucket"description="CGI Stats"
Theexamples above create three buckets: acl-bucket,file-bucket, and cgi-bucket.To
associatethese buckets with functions, add bucket=bucket-name to the obj.conf function for
whichto measure performance.
Example
PathCheck fn="check-acl"acl="default"bucket="acl-bucket"
...
Service method="(GET|HEAD|POST)"type="*~magnus-internal/*"
fn="send-file"bucket="file-bucket"
...
<Object name="cgi">
ObjectType fn="force-type"type="magnus-internal/cgi"
Service fn="send-cgi"bucket="cgi-bucket"
</Object>
Formore information, see “The bucket Parameter” in Sun Java System Web Server 7.0 Update 1
Administrator’sConguration FileReference.
PerformanceReport
Theserver statistics in buckets can be accessed using perfdump. The performance buckets
informationis located in the last section of the report returned by perfdump.
Thereport contains the following information:
Average,Total,and Percent columns give data for each requested statistic.
RequestProcessing Time is the total time required by the server to process all requests it
hasreceived so far.
Numberof Requests is the total number of requests for the function.
MonitoringServer Performance
SunJavaSystem Web Server 7.0 Update 1 Performance Tuning,Sizing, and Scaling Guide 36