Generating Reports for Engine Data
You can generate various reports under some conditions such as increased memory usage, high CPU usage, and more live threads for certain time.
By default, ActiveMatrix BusinessWorks generates reports at {BW_HOME}\<product_version>\Reports. You can change the report location by setting the bw.smartengine.report.path={path_to_report_folder} property in the AppNode's config.ini file. You can also maintain a history or reports.
-
Set the following property in the AppNode's
config.inifile.bw.smartengine.enabled=true
You can also enable the smart engine feature dynamically by using the following REST API:
http://<host>:<appnode_port>/monitor/systemproperties/enableSmartEngine
Note: The default endpoint for the Smart Engine ishttp://localhost:8090/monitorwhere,8090is the AppNode port.
- Procedure
-
To get the application statistics in reports, set the
bw.smartengine.appStatistics.enabledproperty totruein the AppNode'sconfig.inifile. You can also enable the application statistics dynamically by using the following REST API:http://<host>:<appnode_port>/monitor/systemproperties/enableSmartEngine?bw.smartengine.appStatistics.enabled=true
Warning: You may observe performance degradation after setting the property. -
Based on your requirements to get data in the report, several triggers are available. For more information, see the list of available Triggers.
-
To keep a specific number of reports for each type of performance use case at
{BW_HOME}\<product_version>\Reportslocation, set the following properties in an AppNode'sconfig.inifile:bw.smartengine.keepRecentReports.enabled=truebw.smartengine.keepRecentReports.size=5By default, the smart engine stores the previous five reports for each performance use case.
The HTML report has the following sections:
| Section | Description |
|---|---|
| BW Applications | This section shows the ActiveMatrix BusinessWorks applications in a table. Each row shows the number of jobs for the ActiveMatrix BusinessWorks processes in an application, such as Created Jobs, Running Jobs, Completed Jobs, Faulted Jobs, and Canceled Jobs. After the ActiveMatrix BusinessWorks applications table, line charts are shown for each application, such as Total Job Count chart and New Job Count chart. When an application has incoming HTTP requests, Total HTTP Connector Calls chart, and New HTTP Connector Calls chart are shown. For each ActiveMatrix BusinessWorks application, the ActiveMatrix BusinessWorks processes in the ActiveMatrix BusinessWorks application are shown in a table. Each row shows the number of jobs for a ActiveMatrix BusinessWorks process, such as Created, Completed, Faulted, and Suspended. After the ActiveMatrix BusinessWorks processes table, line charts are shown for each ActiveMatrix BusinessWorks process, such as Total Job Count chart and New Job Count chart. For each ActiveMatrix BusinessWorks process, the ActiveMatrix BusinessWorks activities in the ActiveMatrix BusinessWorks process are shown in a table. Each row shows the runtime information of an activity such as:
The processes and activities statistics data is available when the application statistics feature is enabled (for example, |
| Operating System | This section shows the operating system information in a table, such as:
After this table, line charts are shown, such as:
|
| Runtime Information | This section shows the runtime JVM information in a table, such as:
|
| JVM Information | This section shows the overall JVM information in a table such as:
After this table, Top Threads information is shown in a table. Each row shows the data of a thread, such as TID, Name, State, Thread CPU Usage(%), Thread Total CPU Usage(%) and Blocked Thread. After that, the Top Methods information is shown in a table. Each row shows the data of a method, such as Class Name, Method Name, and Total CPU Time(ms). |
| Memory Information | This section shows the JVM memory information in a table, such as:
After the table, line charts are shown, such as Heap Memory Usage chart and Non-Heap Memory Usage chart. |
| Thread Information | This section shows the overall JVM threads information in a table, such as:
After this table, a Thread State Count table is shown. Each row shows the number of threads in a Thread state, such New, Runnable, Blocked, Waiting, and Timed Waiting. After that, line charts are shown, such as JVM Thread Count chart and JVM Thread State Count chart. |
| Thread List | This section shows the JVM threads in a table. Each row shows the data of a thread, such as TID, Name, State, CPU Time(ms), and Allocated Heap Size. |
| Thread Dump | This section shows the JVM threads dump in a table. Each row shows the thread dump of a thread, such as TID, Thread Name, Thread State, Thread Allocated Heap, and Stack Trace. |
| Class Loading | This section shows the JVM class loading information in a table, such as Loaded Class Count, Total Loaded Class Count, and Unloaded Class Count.
After the table, a line chart of Classes Count is shown. |
| Objects Snapshot | This section shows the JVM objects in a table. Each row shows the data of an object, such as number of Instances, Allocated Heap Size, and Class name. |
| Analysis | This section shows the analysis of various performance use cases. When the triggers are evaluated and a trigger condition is met for a performance use case, a corresponding analysis is provided and shown in the report. |
| Recommendations | This section shows the recommendations for various performance use cases. When the triggers are evaluated and a trigger condition is met for a performance use case, related recommendations are provided by the corresponding recommendation providers and shown in the report. |