Statistics Logs

There are two different Web Server/400 statistics log files available:

Statistics Log File (calculated values)

The text version of the statistics log file contains four tables of formatted and calculated information:
Request Processor Averages
The following is the format of the table. Each row represents the statistics for one Request Processor.
   RP    Req/    Bytes/   CPU Time/   Elapsed Time/  Avg. Bytes  Avg. Bytes
   Nbr   Sec.     Sec.     Req(secs)    Req(secs)     Sent/Req     Rcv/Req
   ---  ------  --------  ----------  -------------  ----------  ----------
     1    x.xx   xx.xx K       x.xx          xx.xx      xx.xx K     xx.xx K
     2    y.yy   yy.yy M       x.xx          yy.yy      yy.yy M     yy.yy M

RP Nbr
Request Processor Number
Req/Sec.
The number of Requests/Second processed by each request processor. The time measurement used to calculate the result is based on elapsed time.
Bytes/Sec.
The average amount of data processed by the request processor each second. The time measurement used to calculate the result is based on elapsed time.
CPU Time/Req (secs)
The average amount of CPU processing time incurred processing each request (measured in seconds).
Elapsed Time/Req (secs)
The average amount of elapsed time incurred processing each request (measured in seconds).
Avg. Bytes Sent/Req
The average amount of data sent for each request.
Avg. Bytes Rcv/Req
The average amount of data received for each request.

Request Processor Totals
The following is the format of the table. Each row represents the statistics for one Request Processor.

   RP    Number    CPU Req    Elapsed Req    Bytes      Bytes
   Nbr   of Req   Time(secs)  Time(secs)      Sent     Received
   ---  --------  ----------  -----------  ---------  ----------
     1   xxx.x K       x.xx         x.xx     xx.xx K     xx.xx K
     2   yyy.y M       y.yy         y.yy     yy.yy M     yy.yy M
RP Nbr
Request Processor Number
Number of Req
The total number of requests processed.
CPU Req Time (secs)
The total amount of CPU time spent processing all the requests.
Elapsed Req Time secs)
The total amount of elapsed time spent processing all the requests.
Bytes Sent
The total amount of data sent for all the requests.
Bytes Received
The total amount of data received for all the requests.

Request Processor Calendar Information
The following is the format of the table. Each row represents the start and end date and time for one Request Processor.

   RP
   Nbr   Start Time            End Time
   ---  --------------------  --------------------
     1  dd/mth/year dd:mi:ss  dd/mth/year dd:mi:ss
     2  dd/mth/year dd:mi:ss  dd/mth/year dd:mi:ss
RP Nbr
Request Processor Number
Start Time
The date and time the request processor was started.
End Time
The date and time the request processor ended.

Server Totals
The following is the format of the table.
   Start Time . . . . . . . . . . . . . . . . : dd/mth/year dd:mi:ss
   End Time . . . . . . . . . . . . . . . . . : dd/mth/year dd:mi:ss
   Total Number of Requests . . . . . . . . . : x
   Requests/Second  . . . . . . . . . . . . . : x.xx
   Average CPU Processing Time per Request  . : x.xxx (seconds)
   Total CPU Processing Time  . . . . . . . . : xx.xx (seconds)
   Average Elapsed Time per Request . . . . . : x.xxx (seconds)
   Total Elapsed Time . . . . . . . . . . . . : xx.xx (seconds)
   Average Bytes Sent per Request . . . . . . : xxxx.xx
   Total Bytes Sent . . . . . . . . . . . . . : xxxxx
   Average Bytes Received per Request . . . . : xxx.xx
   Total Bytes Received . . . . . . . . . . . : xxx
   Bytes/Second . . . . . . . . . . . . . . . : xxx.xx
   Total Bytes  . . . . . . . . . . . . . . . : xxxxx
Start Time
The date and time the Web Server was started.
End Time
The date and time the Web Server ended.
Total Number of Requests
The total number of requests processed by all of the request processors during this run of the web server.
Requests/Second
The total number of Requests/Second processed by all of the request processors. The time measurement used to calculate the result was based on the total elapsed time required to process the requests.
Average CPU Processing Time per Request
The average amount of CPU processing time required per request.
Total CPU Processing Time
The total amount of CPU processing time required to process all of the requests.
Average Elapsed Time per Request
The average amount of elapsed time required per request.
Total Elapsed Processing Time
The total amount of elapsed time required to process all of the requests.
Average Bytes Sent per Request
The average amount of data sent for each request.
Total Bytes Sent
The total amount of data sent by all request processors.
Average Bytes Received per Request
The average amount of data received for each request.
Total Bytes Received
The total amount of data received by all request processors.
Bytes/Second
The average amount of data processed by the request processors each second. The time measurement used to calculate the result was based on the total elapsed time required to process the requests.
Total Bytes
The total amount of data sent and received by all request processors.

The following notes apply to all of the tables:

Note: If the text version of the statistics log file is stored within the QSYS file system it will contain a single field record format. The information stored within the file will look the same as if it were in any other file system.

Statistics Raw Data Log File

The statistics raw data log file contains a multiple field record format. The DDS source used to create the statistics raw data log can be found in the WWWSERVER library QDDSSRC file STATSLOG member. This information can be used to programmatically describe the record format of the statistics raw data log data base file. This file can be used as the basis for creating a Web Server/400 statistics tool or CGI script.

The statistics raw data log file includes a record for each Request Processor. This log file contains two types of records, intermediate and total. The records written during the cycling of the statistics log file are considered intermediate records. The records written at the end of a server run are considered total records. The following is the list of the fields, in their respective order, included within a statistics raw data log data base file entry:

Intermediate or Total statistics flag (1 character)
The statistics raw data log file includes records written during the cycling of the statistics log (intermediate statistics) or at the end of the server run (total statistics). A value of '0' indicates an intermediate statistics record and a value of '1' indicates a total statistics record.
Port Identifier (5 characters)
The port identifier indicates the port the request processor recording these statistics is running on.
Request Processor Number (5 characters)
The request processor identifier.
Statistics Date (8 characters)
The date when this record was written to the statistics raw data log file. The format of this field is "YYYYMMDD"
Statistics Time (6 characters)
The time when this record was written to the statistics raw data log file. The format of this field is "HHMMSS"
Start Date (8 characters)
The date when the request processor reporting these statistics was started. The format of this field is "YYYYMMDD"
Start Time (6 characters)
The time when the request processor reporting these statistics was started. The format of this field is "HHMMSS"
End Date (8 characters)
The date when the request processor reporting these statistics ended. The format of this field is "YYYYMMDD"
End Time (6 characters)
The time when the request processor reporting these statistics ended. The format of this field is "HHMMSS"
Number of Requests
The number of requests processed by this request processor. For intermediate records this data indicates the number of requests since the last intermediate record. For total records this data indicates the total number of requests processed during this run of the server.
CPU Processing Time
The amount of CPU time used by this request processor. For intermediate records this data indicates the amount of CPU time since the last intermediate record. For total records this data indicates the total amount of CPU time used by this request processor during this run of the server.
Elapsed Time
The amount of elapsed time spent processing requests. For intermediate records this data indicates the amount of elapsed time since the last intermediate record. For total records this data indicates the total amount of elapsed time used by this request processor during this run of the server.
Bytes Sent
The total amount of data sent by the request processor. For intermediate records this data indicates the number of bytes sent since the last intermediate record. For total records this data indicates the total amount of data sent by this request processor during this run of the server.
Bytes Received
The total amount of data received by the request processor. For intermediate records this data indicates the number of bytes received since the last intermediate record. For total records this data indicates the total amount of data received by this request processor during this run of the server.

The Server User Profile requires Read, Write and eXecute authorities for the directories containing the statistics log files.