Viewing J2EE Diagnostics Data - LoadRunner

This section describes the following topics:

  • Viewing J2EE Diagnostics Data
  • Showing J2EE Measurement Breakdown
  • Example Transaction Breakdown
  • J2EE Transaction Breakdown Diagnostics Graphs

Viewing J2EE Diagnostics Data

You view transaction breakdown data using the J2EE Diagnostics tab in the Controller. To open the J2EE Diagnostics tab, perform one of the following:

  • From the Transaction Response Time graph in the Run tab, right-click and choose Show J2EE server side.
  • Select the J2EE Diagnostics tab.

The J2EE Diagnostics tab opens.

Viewing J2EE Diagnostics Data

To display the list of available diagnostics graphs, right-click in the graph and choose Show Available Graphs. The list of available graphs is displayed with the current graph outlined.

Note: The J2EE Transaction Breakdown Diagnostics Module graphs are only available if there is an active connection between the application server and the mediator.

Understanding the J2EE Diagnostics Tab View

The J2EE Diagnostics tab displays the following J2EE transaction breakdown information:

J2EE Transaction Breakdown graphs: Display the J2EE transaction breakdown information in graph format.

Connection Statistics/Status bar: Displays the name of the application server and the mediator, their connection status, and the number of errors in this scenario.

Transaction for breakdown: Enables you to choose a transaction for breakdown. You can use this to switch from any level of detail within one transaction to the same level of detail in a different transaction without requiring you to move up and down the entire breakdown chain.

Legend: The legend displays statistics on the data displayed in the graph. By default, the legend is sorted according to descending average response time. As this value is updated at every refresh period, the component order can change often, making it difficult to track components. To keep the components sorted in the current order, right-click in the legend area and choose Keep the Legend Sorted, or choose J2EE > Keep Legend Sorted.

Showing J2EE Measurement Breakdown

You can break down the transactions displayed in the Transaction Response Time whole scenario graph. From the transaction level, you can break down successively to the layer, class, and method level.

To view transaction breakdown graphs:

  1. On the Run tab or the J2EE Diagnostics tab, display the Transaction Response Time - whole scenario graph.
  2. Right-click a transaction, and choose Show J2EE server side. A graph showing the next level of breakdown is displayed in the J2EE Diagnostics tab.
    • To view successive breakdown graphs, right-click in the relevant graph area and choose Show Measurement Breakdown, or choose J2EE > Show Measurement Breakdown. Each time you change the breakdown level, the selected graph is outlined in the Available Graphs list.
    • To return to the previous breakdown level, right-click in the graph and choose Undo Measurement Breakdown, or choose J2EE > Undo Measurement Breakdown.

Note: For nested transactions, for example when transaction B is a subtransaction within transaction A, the subtransaction finishes earlier than the parent, and is therefore, reported to the Controller earlier than the parent transaction. This may cause data that is displayed for a parent transaction and a subtransaction not to be vertically aligned on the graph.

Viewing Call Chains and Call Stack Statistics

You can view the chain of calls for transactions and methods. The chain of calls answers the question “Who did I call?” You can also view the call stack statistics for methods. Call stack statistics answer the question “Who called me?” Chain of call and call stack statistics data are shown in the Calls window. The title of the window changes depending on which kind of data you are viewing.

  • To view call chains, right-click a component, and choose Show <Component> Chain of Calls, or choose J2EE > Show chain of calls. The Calls window opens displaying the components that this component called.
  • To view stack statistics, right-click a method, and choose Show Method Call Stack Statistics, or choose J2EE > Method call stack. The Calls window opens displaying all the components that called the selected method.

To change the point to which the Calls window relates, drag the red time line to the desired spot.

Viewing Call Chains and Call Stack Statistics

Understanding the Call Windows

You use the Call Chain window to view the components that the selected transaction called. In the following one, all the calls in the critical path of the Action_Transaction.look_at_fish transaction are displayed.

Understanding the Call Windows

You use the Call Stack Statistics window to view which components called the selected component. In the following figure, the executeQuery.SELECT COUNT query was called by __product._jspService, which was called by __template._jspService, and so on, down to the transaction at the bottom of the chain.

Understanding the Call Windows

Switch to Method Chain of Calls: When the Call Stack Statistics data is displayed, displays the method Chain of calls data (only if the root is a method).

Switch to Method Call Stack Statistics: When the method Chain of calls data is displayed, displays the method Call Stack Statistics data (only if the root is a method).

Show Method Chain of Calls: Displays the Chain of Calls window.

Show Method Call Stack Statistics: Displays the Call Stack Statistics window.

Properties: Hides or displays the properties area (lower pane).

Columns: Enables you to select the columns shown in the Calls window. To display additional fields, drag them to the desired location in the Calls window. To remove fields, drag them from the Calls window back to the Columns chooser.

Measurement: Name of the method, displayed as classname.methodname. In the case of a database call, query information is also displayed. The percent shown indicates the percent of calls to this component from its parent.

% of Transaction (or Root Method): Percentage of the total time of the transaction (or method) from the total time of the root tree item.
No of Calls: Displays the amount of times that this transaction or method was executed.

Avg Response Time: Response time is the time from the beginning of execution until the end. Average response time is the total response time divided by the number of hits.

STD Response Time:The standard deviation response time.

Min Response Time: The minimum response time.

Max Response Time: The maximum response time.

% of Called: Displays the execution time, as a portion of the time of the calling component.

Total time: Displays the total method execution time, including the child execution time.

Expand Tree: Expands the entire tree.

Contract Tree: Contracts the entire tree.

Expand Worst Path: Expands only the parts of the path on the critical path.

Method Properties Area: Displays the full properties of the selected method.

SQL Query: Displays the SQL query for the selected method. (For Database only.)

Example Transaction Breakdown

The following graphs illustrate the breakdown of a transaction to its layer, class, and methods.

Transaction Level

The following figure displays the top level Transaction Response Time graph. The graph displays three transactions:

Transaction Level

Layer Level

The following figure displays the breakdown of the Action_Transaction.look_at_fish transaction into its layers:

Layer Level

The top of each breakdown graph displays the name of the graph and the name of the parent component. In this Time Spent on Each Layer graph, the Action_Transaction.look_at_fish transaction has been broken down to its layers (DB, EJB, JNDI, and Web). In Web transactions, the database (DB) layer is generally the largest.

Class Level

The following figure displays the breakdown of the DB layer into classes:

Class Level

In this Time Spent on Each JDBC Component graph, the DB layer of the Action_Transaction.look_at_fish transaction has been broken down to its classes. The Legend displays data on the classes.

Method/Query Level

The following figure displays the breakdown of a class into its methods:

Method/Query Level

In this Time Spent in Component Method graph, the SerialStatement class of the DB layer of the Action_Transaction.look_at_ fish transaction has been broken down to its methods. The Legend displays numerous method lines, differentiated by their SQL statements. When you point to a method line, its properties are displayed in a pop-up window.

J2EE Transaction Breakdown Diagnostics Graphs

You can view J2EE transaction breakdown data in the following graphs:

Transaction Graphs

  • Transaction Response Time - Server Side: Shows the transaction server response time of transactions that include steps that cause activity on the J2EE backend. The reported times, measured from the point when the transaction reached the Web server to the point it left the Web server, include only the time that was spent in the J2EE backend.
  • Nested Transaction Response Time Server Side: Shows all the transactions within the selected transaction, including the selected transaction.
  • Transactions per Second Server Side: Shows the amount of times per second that the transaction was executed.

Transaction Layer Graphs

  • Time Spent In Each Method: Shows the time spent in each monitored method.
  • Time Spent On Each Layer: Shows, for a specific transaction, the total time for each layer.
  • Calls per layer: Shows, for a specific transaction how many times each layer was called per second.

Class Graphs

The class graphs can be displayed for Web server (SERVLET), application server (EJB), database (JDBC), or naming server (JNDI) classes:

  • Time Spent in Each <Class> Component: Shows, for a specific transaction the total class time in the different components.
  • Calls per <Class> Component: Shows how many times each component was called per second.
    Method Graphs
    The method graphs can be displayed for Web server (SERVLET), application server (EJB), database (JDBC), or naming server (JNDI) methods.
  • Time Spent In Each Component Method: Shows the breakdown of the total layer time into the different methods/queries in a specific transaction.
  • Component Method Calls per Sec: Shows how many times each method was called per second in a specific transaction
  • Average Component Method Response Time: Shows the average time spent in the method.

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd DMCA.com Protection Status

LoadRunner Topics