When an application program is executed and a request is received, the events that occur in the system are collected as internal trace. The internal trace is output once to the shared memory, and then it is output to the file as per the specification in the directive or command.
Internal traces are collected in the shared memory when various events occur in the Web server. The memory identifiers of shared memory are stored in the file specified in the HWSTraceIdFile directive.
The internal trace that is collected in the shared memory is output to a file when the server process terminates abnormally or when the hwstraceinfo command is executed. When the server process terminates abnormally, the trace is output to the file specified in the HWSTraceLogFile directive.
Specify the memory identifier and file name of output destination, in the hwstraceinfo command. For the UNIX version, only the user specified in the User directive or the superuser can execute the hwstraceinfo command. For the Windows version, only the user with administrative permission can execute the hwstraceinfo utility.
The internal trace information output file size is as follows:
This section describes how to specify the hwstraceinfo command.
hwstraceinfo -i shared-memory-identifier {-l file-name|-r} |
The following is an example to output the trace corresponding to the shared memory identifier 1800_1133780652_0, to the traceinfo.log file:
hwstraceinfo -i 1800_1133780652_0 -l traceinfo.log |
To retain trace information, the Web server does not release the shared memory even when the Web server stops. The shared memory is reused when the server restarts.
When you stop the server and restart it later, the Web server releases the shared memory once and then restores it depending upon the file value specified in the HWSTraceIdFile directive. However, in the following cases, the shared memory used earlier cannot be released:
When you release the shared memory, execute the hwstraceinfo command in which -r is specified.