uCosminexus Service Platform, Setup and Operation Guide
When failure occurs in the file adapter, information necessary for troubleshooting is output to log file and trace file. The following table lists type of logs and traces that you can acquire in the file adapter:
Table 7-58 Table Type of logs/traces (For file adapter)
| Log/trace | Output information | Description |
|---|---|---|
| Message log | Each type of information in file adapter is output as message. | You can check operation information (Start/Stop/Error) as message. You can check operational status of system in batch since the output destination of the message log is common for entire Application Server and Service Platform. |
| Method trace | The following information is output when you start or end an internal method of the file adapter:
|
You can check the publication time and sequence of internal method. |
| Performance analysis trace (PRF trace) | The following information is output to the performance analysis trace collection point of the entire Application Server and Service Platform:
|
You can validate the performance of Service Platform system on the basis of the performance analysis information output in the series of process starting from when you receive request from the service requester till the execution result is returned. |
For details on points to be considered while outputting logs and traces, see ", 7.3.4(1) General notes".
You can acquire the log and the trace of file adapter using the troubleshooting functionality of Application Server. The methods for acquiring logs and traces are as follows:
Furthermore, if you acquire trace of HCSC server, troubleshooting of the entire Application Server becomes easy. The following table describes trace information that you can acquire in HCSC server. For details, see contents regarding collection of failure information in "Application Server Maintenance and Migration Guide".
Table 7-59 Trace information that you can acquire in HCSC server
| Trace functionality | Description |
|---|---|
| Request trace | You can acquire information necessary to hold business process of requests received in standard reception, business process reception, or transfer reception between servers on messaging board, invocation destination of service adapter or its result. |
| Method trace | You can acquire method trace information provided by HCSC server. |
| Performance analysis trace | You can acquire information to analyze performance bottleneck of entire Application Server which includes J2EE application and entire Service Platform System |
When failure occurs in file adapter, exception is notified for the HCSC server excluding failure in stop process.
When start process of the file adapter fails, exception is notified to the HCSC server and process ends. Cause of failure in start process can be failure in analyzing file adapter execution environment property file.
Figure 7-76 Figure Failure in start process
When failure in file control process of file adapter is detected, exception is notified to the HCSC server and process ends.
Figure 7-77 Figure Failure in file control process
When failure in stop process of file adapter is detected, stop process is continued till process ends. Exception is not notified for HCSC server. However, when an unexpected failure occurs, in some cases exception is notified.
You can acquire information of start and stop of service and error information at the time of failure as message log, you can detect occurrence of failure and analyze cause of failure.
Output destination of the message log is as follows:
Path specified in output destination of J2EE server operation log
Specify the output destination of J2EE server operation log in the ejb.server.log.directory key of option definition file (usrconf.cfg) for the J2EE server on which the HCSC server is running. For details, see "2.4 usrconf.properties (User property file for J2EE server)" in "Application Server Definition Reference Guide".The following table lists log file name of message log:
Table 7-60 Table Log file name of message log
| Output mode of log file | Log file name |
|---|---|
| For wraparound mode | cjmessage<Count>.log# |
| For shift mode | cjmessage.log# |
Specify the count of output files in the ejbserver.logger.channels.define.<Channel name>.filenum key of the user property file(usrconf.properties) for J2EE server on which the HCSC server is running. For details, see "2.4 usrconf.properties (User property file for J2EE server) " in "Application Server Definition Reference Guide".
Specify the output file size in the ejbserver.logger.channels.define.<channel name>.filesize key of the user property file (usrconf.properties) for J2EE server on which the HCSC server is running. For details, see "2.4 usrconf.properties (User property file for J2EE server) " in "Application Server Definition Reference Guide
You can validate the time and sequence of the internal method publication. Maintainance service uses method trace to analyze failure.
Output destination of method trace is as follows:
<Path specified in output destination of activity log of J2EE server>\CSCADP\FFADP\maintenance\<Service adapter name>
Specify the output destination of J2EE server operation log in the ejb.server.log.directory key of the option definition file (usrconf.cfg) for J2EE server on which the HCSC server is running. For details, see "2.3 usrconf.cfg (Option definition file for J2EE server) " in "Application Server Definition Reference Guide".
The following table describes the trace file name of method trace.
Table 7-61 Table Trace file name of method trace
| Output mode of trace file name | Trace file name |
|---|---|
| For wraparound mode | mtdtrace<Count>.log |
| For shift mode | mtdtrace.log |
The default number of output files is 4. You can change number of output files using the methodtracefile.num key of file adapter execution environment property file.
For details on how to change, see description for creating the file adapter execution environment property file in "3.3.7 Defining file adapters " in "Service Platform Reception and Adapter Definition Guide".
The default size of the output file is 4MB. You can change the size of the output file with methodtracefile.size of file adapter execution environment property file.
For details on how to change, see description for creating the file adapter execution environment property file of "3.3.7 Defining file adapters " in "Service Platform Reception and Adapter Definition Guide".
You can validate the performance of Application Server and Service Platform system on the basis of the performance analysis information output in the series of processes starting from when you receive a request from the service requester till the execution result is returned. File adapter specific information is output in performance analysis trace collection point of file adapter. Maintainance Service uses the information to analyze performance bottlenecks.
The following table describes the output destination of performance analysis trace and trace file name.
Table 7-62 Table Output destination of performance analysis trace and trace file name
| Output destination path of trace | Trace file name |
|---|---|
| <Setting directory of environment variable PRFSPOOL>\utt\prf\<PRF Identifier>\dcopltrc# | prf_<n> |
The default number of output files is 4. You can change the number of output files with the management portal or cprf command. For details on the management portal , see "Application Server Management Portal User Guide", For details on the cprf command, see "Application Server Command Reference Guide".
When file size is set in the management portal, the default file size is 32MB. When file size is set with the cprf command, the default file size is 8MB. You can change file size with the management portal of cprf command. For details on the management portal, see "Application Server Management Portal User Guide ", For details on the cprf command, see "Application Server Command Reference Guide".
The format which is output to the performance analysis trace is same as the performance analysis trace of J2EE server. For details, see "7.3 Collecting performance analysis trace file where Management Server is used" in "Application Server Maintenance and Migration Guide".
In the performance analysis trace collection point of the file adapter, file adapter specific information is output.
Figure 7-78 Figure Performance analysis trace collection point of the file adapter
Table 7-63 Table Performance analysis trace collection point
| Event ID | Numbers in figure | Trace collection point | Level#1 |
|---|---|---|---|
| 0xA000 | 1 | At the time of request reception | Details |
| 0xA002 | 2 | When invoking file operation process | Standard |
| 0xA003 | 3 | When file operation process ends.#2 | Standard |
| 0xA001 | 4 | When sending response | Details |
Table 7-64 Table Specified location of trace collection level
| Index | Digit | Upper layer | Lower layer |
|---|---|---|---|
| Index 1 | 1st digit | Redirect | Web container |
| 2nd digit | EJB container | JNDI | |
| 3rd digit | JTA | JCA container | |
| 4th digit | DB Connector | RMI | |
| 5th digit | Web Services - Base | TP1 ConnectorCTP1/Client/J | |
| 6th digit | TP1/Message Queue - Access | Reliable Messaging | |
| 7th digit | OTS | - | |
| 8th digit | CTM | - | |
| Index 2 | 1st digit | HCSC server | Standard output/standard error output/User log |
| 2nd digit | DI | - | |
| 3rd digit# | - | File adapter |
Table 7-65 Table Specified value of trace collection level of file adapter
| Specified value# | Trace collection level |
|---|---|
| 0 | Standard |
| 1 | Details |
All Rights Reserved. Copyright (C) 2015, Hitachi, Ltd.