How do I sort Diagnostic Data?
Server diagnostics tool is used for profiling J2EE Applications with Pramati Server services such as JDBC resources and transactions. This feature helps clients in troubleshooting. For deployment modules that contain a large number of Servlets and EJBs, the data is sorted such that you can quickly locate the performance bottleneck. The queries that take a lot of time are displayed in descending order, sorted by the cumulative time taken to perform a task.
Sorting of Servlet or EJBs
Given the object name of a servlet or EJBs of any application running on Server, these statistics are rendered by the Diagnostics GUI. This process is repeated for the complete set of components of any deployed module.
Sorting any data structure is bound to have a performance impact. The sorting algorithm is a modified merge-sort that guarantees n*log(n) performance and uses linear performance approach on nearly sorted lists. Considering that the Diagnostics Tool is turned on on-demand and is GUI-based, the time taken to sort the data in order to improve usability is acceptable.
How do I view sorted Diagnostic Data?
To view the sorted data from the Console, select Analyze > Sever Diagnostics. Select a deployed application, for example, OrderBook.ear. The results are sorted based on cumulative time, and displayed at three levels:
- Level 1: Lists the components of any deployed module. All the Servlets or JSPs in the Web component are sorted based on cumulative time.
- Level 2: Gives details of the business method for a bean or service method for a JSP.
- Level 3: Each task that contributes to the processing of a business or service method can be explored further to know the time taken by sub-tasks like prepared statement execution time, bean load time etc.
Related Topics:
|