Hitachi

uCosminexus Application Server Maintenance and Migration Guide


7.7.2 Analyzing the Response Time of a Web Server

This subsection describes how to analyze the time from when a Web server received a request from a client to when the response was returned to the client, with an example.

You can output the time taken to process the request in the access log of the Web server. For details, see the directive in 6.2.3(6) CustomLog {file-name | pipe} {"format" | label-name} [env=[!]environment-variable] in the uCosminexus Application Server HTTP Server User Guide.

The following is an example of the output of the access log specified in the default configuration file.

Output example

192.168.10.10 - - [12/Feb/2020:20:52:16.352 +0900] "GET /index.html HTTP/1.1" 200 53 0.013 11340 "192.168.10.10/5636/0x0000000000000022"
192.168.10.10 - - [12/Feb/2020:20:52:19.439 +0900] "GET /wait.pl HTTP/1.1" 504 319 3.004 12548 "192.168.10.10/5636/0x0000000000000023"

The output example shows that it took 0.013 seconds to process the request to index.html and 3.004 seconds to process the request to wait.pl. In addition, by comparing the root application information output in each message with the root application information output in the trace based performance analysis file, you can analyze the processing time for each functionality layer.