uCosminexus Application Server, Maintenance and Migration Guide
Use the configuration file for the user-extended trace based performance analysis to specify the settings for the methods to be traced by the user-extended trace based performance analysis. You can code the contents of the configuration file for the user-extended trace based performance analysis in one of the following files or window:
The format for coding the configuration file for the user-extended trace based performance analysis is as follows:
specification-format#, identity-ID, subclass-flag [, [event-ID][,[trace-collection-level]]] [# Comment] |
Example of coding format:
com.sample.Test.method(),TEST1,false,0xae02,A com.sample.Test.method(),TEST1,false,0xae02 com.sample.Test.method(),TEST1,false,0xae02, com.sample.Test.method(),TEST1,false,,A com.sample.Test.method(),TEST1,false com.sample.Test.method(),TEST1,false, com.sample.Test.method(),TEST1,false,, |
The items coded in the configuration file for the user-extended trace based performance analysis are as follows:
The rules for coding the configuration file for the user-extended trace based performance analysis are as follows:
Table 7-8 Methods to be traced based on the class or interface specification
Class or interface | Method to be traced | |
---|---|---|
When false is specified in the subclass flag | When true is specified in the subclass flag | |
Class | Method of the specified class | The methods of the specified class and the methods overriding these methods |
Interface | None | The methods of the class#1 that directly implements the specified interface and the class#2 that indirectly implements the interface, and the methods overriding these methods |
This section describes the examples of coding of the configuration file for the user-extended trace based performance analysis for each method to be traced.
Note that the examples of code assume that the package name is com.sample, and that the application has the class structure shown in the following figure.
Figure 7-8 Example of the class structure of the application
The following is an example of coding the user-extended trace based performance analysis configuration file when you want to trace a method with a matching method name and argument types:
com.sample.ClassA.methodA1(java.lang.String,java.lang.Object),1000,false |
If the subclass flag is false, the coded method with a matching method name and argument types is traced.
The event ID is not set for the method to be traced, so if you invoke the method to be traced, the default value 0xae00 is output as the event ID at the method entry, 0xae01 is output at the method exit. Also, 1000 is set in the identity ID, so 1000 is output as the identity ID.
com.sample.ClassA.methodA2(),2000,true |
If the subclass flag is true, in addition to the method in which the method name and argument types match the code, the methods overriding the coded method are also traced.
The event ID is not set for the method to be traced, so if you invoke the method to be traced, the default value 0xae00 is output as the event ID at the method entry, 0xae01 is output at the method exit. Also, 2000 is set in the identity ID, so 2000 is output as the identity ID for all the methods to be traced.
The following is an example of coding the user-extended trace based performance analysis configuration file when you want to trace methods with matching method names:
com.sample.ClassA.methodA1(*),methodA1,false,0xae30 |
If the subclass flag is false, all the methods matching with the coded method names are traced.
If the method to be traced is invoked, 0xae30 is output as the event ID at the method entry, and 0xae31 is output at the method exit. Also, methodA1 is output as the identity ID for all the methods to be traced.
com.sample.ClassA.methodA1(*),methodA1,true,0xae30 |
If the subclass flag is true, all the methods matching with the coded method names are traced. Also, in addition to the coded method, the methods overriding the coded method are also traced.
If the method to be traced is invoked, 0xae30 is output as the event ID at method entry, and 0xae31 is output at method exit. Also, methodA1 is output as the identity ID for all the methods to be traced.
The following is an example of coding the user-extended trace based performance analysis configuration file when you trace all the methods with matching class names, omitting the methods and arguments.
com.sample.ClassA,TEST01,false |
If the subclass flag is false, all the methods with the coded class name (ClassA class) are traced.
If the method to be traced is invoked, 0xae00 is output at method entry and 0xae01 is output at method exit because the event ID is omitted. Also, TEST01 is output as the identity ID for all the methods.
com.sample.ClassB,TEST02,true |
If the subclass flag is true, all the methods with the coded class name (ClassB class), and all the methods that override these methods are traced.
If the method to be traced is invoked, 0xae00 is output at method entry and 0xae01 is output at method exit because the event ID is omitted. Also, TEST02 is output as the identity ID for all the methods.
The following is an example of coding the user-extended trace based performance analysis configuration file when you trace all the methods of all the classes with matching package names, omitting the class names, method names, and arguments.
com.sample.*,6000,false |
If the subclass flag is false, all the methods of all the classes in the coded package (com.sample) are traced.
If the method to be traced is invoked, 0xae00 is output at method entry and 0xae01 is output at method exit because the event ID is omitted. Also, 6000 is output as the identity ID for all the methods.
com.sample.*,6000,false |
If the subclass flag is true, all the methods of all the classes in the coded package (com.sample), and all the methods that override these methods are traced.
If the method to be traced is invoked, 0xae00 is output at method entry and 0xae01 is output at method exit because the event ID is omitted. Also, 6001 is output as the identity ID for all the methods.
The precautions to be taken when you create a configuration file for the user-extended trace based performance analysis are as follows:
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.