Web server input/output information is output to a trace log.
Output destination
The trace log is output to the following file:
symfowareServerInstallDir\java/ahs22\plextjava\domain1\logs\tracelog
Output details
Number of generations
5
Maximum log size
2,097,152 bytes
Length of Record
Variable
Rotation conditions
If the log size is exceeded, old information will be saved to a file with the name "tracelog.N".
N is a consecutive serial number, assigned in order of the newness of files - for the first file it is "0", and for the nth file it is "(N-1)".
Output content
The trace log is output at the times shown below for each item of trace information.
Web client input/output information
When a TCP connection is established
When a TCP connection is closed
When an HTTP request is received
When an HTTP response is sent
Plug-in module input/output information
When the plug-in module response processing function is called
When the plug-in module response processing function is returned
Output format
The format of the log output as a trace log is shown below.
[dateTime][processId][threadId]detailedEventInformation
Output items
The following explains the output items in the output format.
dateTime
Datetime of trace information output
The datetime is output in the format "[day/month/year:hour:minute:second.millisecond]".
processId
Process ID of the daemon process
threadId
Thread ID of the communication thread
detailedEventInformation
The following table explains the trace content formats for each output trigger.
Output trigger | Event | Detailed event information |
---|---|---|
When a TCP connection is established | conn | IpAddrOfClient:portNum =>IpAddrOfTargetWebServer:PortNum I |
When a TCP connection is closed | disc | |
When an HTTP request is received | recv | Content of the request line This portion contains the escaped request. |
When an HTTP response is sent | send | Status code |
When the plug-in module response processing function is called (*1) | call | Module source name (*2) |
When the plug-in module response processing function is returned (*1) | rtn | Module source name (return code) (*2)
|
*1: The output target plug-in modules are those not provided in HTTP Server 2.2.
*2: This is the source file name when the plug-in module is compiled. The module source name of the Web server connector provided in the Servlet service is output as "mod_jk2.c".
Information
The HTTP Keep-Alive feature connection retention time can be checked from the trace log. For the output trace log, the datetime of disc (event when a TCP connection is closed) and send (event when an HTTP response is sent) is checked, and calculated according to the following formula:
httpKeepAliveConnectionRetentionTime= discDatetime - sendDatetime
Note: When a timeout occurs for a request from the web server to break the TCP connection to the client, if the disconnection notice from the client cannot be received within two seconds, the connection retention time may be two seconds longer than the setting in the KeepAliveTimeout directive..
Output example
[15/May/2014:11:34:34.550][5144][5157]conn 127.0.0.1:44217=>127.0.0.1:26530 [15/May/2014:11:34:34.550][5144][5157]recv "POST /db01/callstored HTTP/1.1" [15/May/2014:11:34:34.551][5144][5157]call mod_jk2.c [15/May/2014:11:34:34.576][5144][5157]rtn mod_jk2.c(0) [15/May/2014:11:34:34.576][5144][5157]send 400 [15/May/2014:11:34:34.591][5144][5157]disc