Chapter 3. WebSphere Studio Workload Simulator installation,
3.6 Analyzing test results
3.6.2 Graphing test data
After you have collected real-time statistics during a test run and downloaded them to your Controller, you can use the Workload Simulator graphing tool to create, edit, save, and print charts.
To open the graphing tool from the Controller, select Report Graphs. The WebSphere Studio Workload Simulator Graph window opens, as shown in Figure 3-13.
Figure 3-13 WebSPhere Studio Workload Simulator Graph window
This window provides the ability to chart your test results, format and edit your charts, save charts for later use, and print charts.
The Workload Simulator Graph window contains two workspaces:
Tree View
A list of the test result files that you have downloaded from the Engine and graphs that you have saved. To see your test result files, expand the list under XML_DATA. To see your graphs, expand the list under Graph.
Editor
The main work area for graphs. This pane displays graphs and provides tools for
Creating graphs
To create a graph from test results you have downloaded to the Controller, follow these steps:
1. In the tree view of the Graph window, double-click an XML file name from the list under XML_DATA. The Graphics Selection dialog opens, as shown in Figure 3-14.
Figure 3-14 Graphics Selection dialog
2. Use the fields in the Titles area of the window to type labels for your charts.
You can add a title, a subtitle, and labels for the two Y (vertical) axes. If you omit labels for the axes, Workload Simulator creates labels appropriate for the data you select.
3. Use the fields in the Axis Data area to select the type of data to chart. You can chart one X axis and multiple Y axes against two Y-axis scales in each graph.
– To select a data type for the X axis, click the Select X drop-down list.
– To select a data type for the Y axes, click a row under Data Name to select the data type and then click the corresponding row under Axis Scales to choose Y1 (left axis) or Y2 (right axis). You can assign more than one data type to each Y axis.
The data you select for Y1 is plotted on the left vertical axis. The data you select for Y2 is plotted on the right vertical axis. The following data types are available. The specific data types that appear in the drop-down lists depend on the data types captured by the script. If an XML file does not include FTP data, for example, FTP Data does not appear on the list.
– Average response time
The average response time, in seconds, of page elements processed during each reporting interval. This data type is not available for the X axis.
– Data read
The average number of megabytes read per second during each reporting interval. This data type is not available for the X axis.
– Data Written
The average number of megabytes written per second during each reporting interval. This data type is not available for the X axis.
– FTP data
FTP data read and written, average elapsed time, elapsed time per FTP call and per FTP block, and number of FTP calls per second and per FTP block. This data type is not available for the X axis.
– Number of clients
The number of active clients recorded at each reporting interval. If you select Number of Clients for the X axis, the XML data collected will be combined on the boundaries of the number of clients. This may mean that multiple data points will be combined as an average.
– Page elements/sec
The average number of page elements processed per second in each reporting interval. This data type is not available for the X axis.
– Performance data by page
Elapsed time, number of elements, and response time for specific pages
which you can choose the statistics you want to graph and pages you want to display data for. This data type is not available for the X axis.
– SMTP data
SMTP data read and written, average elapsed time, elapsed time per SMTP call and per SMTP block, and number of SMTP calls per second and per SMTP block. This data type is not available for the X axis.
– SOAP data
SOAP data read and written, response time and elapsed time for SOAP data, and number of SOAP calls made. This data type is not available for the X axis.
– System performance data
The CPU or memory/paging usage of the Engine on which the test was un. This data type produces results only if you have included the qperf tag in your script. Selecting this data type opens the Performance Selection dialog. This data type is not available for the X axis.
– Time
This is the default data type for the X axis. It is not available for the Y axes.
– Transactions data
Elapsed time and number of transactions for specific transactions in a simulation. Selecting this data type opens the Transactions Selection dialog from which you can choose the statistics you want to graph and the transactions you want to display data for. This data type is not available for the X axis.
– Application Monitor data
Graphs data collected by WebSphere Studio Application Monitor during a simulation. Selecting this data type opens the Application Monitor Data dialog from which you can choose the Application Monitor data to graph.
This option is available only if you used the qwsam statement in your script. This data type is not available for the X axis.
4. To create a simple graph that charts data read and data written over time, select Time in the Select X field, Data Read in the Select Y1 field, and Data Written in the Select Y2 field.
5. To chart your data, click Graph. The chart displays in the editor work area, as shown in Figure 3-15 on page 49.
Figure 3-15 Graph a Data Read and Data Written over Time
Printing and saving charts
To print a chart, select Print from the graph editor pop-up menu or from the File menu. You can also look at a preview of the printout by selecting File Print Preview.
To save a chart, select Save from the graph editor pop-up menu or from the File menu. Workload Simulator saves the graph in the Graph tree as file type .graph.
Usage notes
Following are some issues to consider while using the Workload Simulator graphing tools:
Maximizing and minimizing the graph window may change the scale of a graph.
When the legend appears at the bottom of a graph, the first two data lines may be hidden. To solve this problem, change the placement of the legend from bottom to left or right using the Chart page of the Graph Properties dialog.
When you graph Performance Data by Page, the legend displays the first 11 characters from the host name of a page followed by an ellipsis (...) and then up to 11 characters of the page name; for example,
www.ibm.com.../index.html.
The Y1 and Y2 axis labels are limited to 21 characters.
On the Axis page of the Graph properties dialog, you cannot use the Title font or Scale font buttons to change the color of the axis title and scale markers.
Part 3