uCosminexus Application Server, Maintenance and Migration Guide
The trace based performance analysis of Application Server is a functionality that analyzes the Application Server performance by using the performance analysis information (trace information) output by the Application Server functionality in the processes that handle the requests from the client, and the information used to determine the session life cycle (hereafter, the trace based performance analysis of Application Server will be referred to as trace based performance analysis). This analysis enables you to analyze the Application Server bottlenecks, to improve the efficiency of troubleshooting by checking the extent to which request processing has been attained when an error occurs, and to understand the session and global session information life cycles.
The trace information of the trace based performance analysis collects the performance analysis information output in a series of processing of requests until the client reaches the components of the EIS such as a database, and until the processing results are returned to the client.
The following figure shows an overview of the trace information collection by the trace based performance analysis.
Figure 7-2 Overview of trace information collection of trace based performance analysis
When a request is sent from the Web client or the EJB client, the Web server, J2EE server, and CTM output the trace information to the buffer at determined processing points. If constant output information is collected, the trace is output in the trace file (PRFTrace file) depending on the performance tracer (PRF demon). The point at which the trace is output is called the trace get point. You can set the trace collection levels (standard or detailed) in the performance tracer. The trace collection levels set in the performance tracer are called PRF trace collection levels.
When you use Management Server for operations, you can collect the trace based performance analysis file by editing the PRF trace file in the text format. On the basis of the collected trace based performance analysis file, the operations administrator can perform the entire performance and bottleneck analysis in the management domain. For details on how to collect the trace based performance analysis file and the information that is output, see 7.3 Collecting the trace based performance analysis file by using Management Server.
You can use the trace based performance analysis to collect the trace information across multiple nodes and processes in an event within the system. This helps to trace the process in a sequence of processes in which there is a bottleneck.
To obtain the trace in an event, set a uniform key for the sequence of processes of an event in the trace based performance analysis. The information of the key is added to the trace that is output at the trace acquisition point in an event. The sequence of processes can be traced in this way.
Figure 7-3 Overview of trace output depending on the trace based performance analysis
The redirector and the Web container that output the trace are referred to as the function layer. In the trace based performance analysis, trace information is output at the entrance and the exit of the following function layer. Moreover, the trace information is output as and when necessary for each process that affects the performance among the processes of the function layers. The following table describes the execution environment of the application and the applicable function layer. In the trace based performance analysis, trace information is output at the entrance and the exit of the following function layer.
Table 7-2 Execution environment of the application and the applicable function layer
Function layer | Execution environment of the application | |
---|---|---|
Execution environment of the J2EE application | Execution environment of the batch application | |
CTM | Y | -- |
Redirector | Y | -- |
Web container | Y | -- |
EJB container | Y | -- |
Timer Service | Y | -- |
JNDI | Y | Y |
JTA | Y | Y |
JCA container | Y | Y |
DB Connector | Y | Y |
RMI (communication processing)#1 | Y | Y |
OTS | Y | Y |
Standard output, standard error output, and user log | Y | Y |
DI | Y | -- |
Batch application execution functionality | -- | Y#2 |
JPA | Y | -- |
Cosminexus JPA Provider | Y | -- |
TP1 inbound integrated function | Y | -- |
Cosminexus JMS Provider | Y | -- |
JavaMail | Y | -- |
CDI | Y | -- |
In addition to these function layers, the trace based performance analysis outputs the trace for the start process and stop process of the J2EE server, as well as when transaction timeout occurs, and when a session is generated or cancelled.
The trace information contains information such as the process ID used to get the trace information, eventID that indicates the get point, and the IP address of the client application that gets the trace get date or the trace information.
The key information of the trace information consists of the following elements:
The following two types of key information are added to the PRF trace:
The trace based performance analysis consists of the following programs:
Figure 7-4 Relation between PRF trace output library and PRF daemon
The buffer area output by trace is created when the PRF daemon starts, depending on the PRF trace output library. The buffer area is created in the common memory. Any buffer area that was created in the previous invocations of the PRF daemon that is still remaining is re-used. The buffer area is not deleted when the PRF daemon that was invoked previously ends abnormally.
When the PRF daemon ends normally, the buffer data in the buffer area is output to a PRF trace file and the buffer area is deleted.
When the buffer area is insufficient, the message of KFCT26999-W might output and the PRF trace might not output at all. Therefore, you must tune the buffer size when the message is output.
The use of trace information in troubleshooting errors is explained below.
You can output the information in the trace based performance analysis and use it for troubleshooting as follows:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.