How to: Analyze Threshold Violations Using the Counters Panel in Load Test Analyzer
This topic applies to:
Visual Studio Ultimate
Visual Studio Premium
Visual Studio Professional
Visual Studio Express
The Counters panel is visible in the Graphs view and the Tables view in the Load Test Analyzer while a load test is running, or when you are analyzing a load test result. For more information, see Analyzing Load Test Results in the Graphs View of the Load Test Analyzer, Analyzing Load Test Results in the Tables View of the Load Test Analyzer and How to: Access Load Test Results for Analysis.
Threshold violations are associated with specific performance counters, and indicate that the performance counter either exceeded or fell below a set threshold value. Icons in the counters panel communicate threshold violations.
Computers Node in Counters Panel with threshold violation
The icon for a threshold violation is propagated from the tree node where the failed counter resides to the root. The icon alerts the user to a violation on a counter that might not be visible in the tree because the tree has not been expanded. An example of the icon can be seen in the Computers Node in Counters Panel in the previous illustration.
The icon will be one of the following:
No threshold violation.
A critical threshold violation occurred on the last interval.
A critical threshold violation occurred on a prior interval.
A warning threshold violation occurred on the last interval.
A warning threshold violation occurred on a prior interval.
To analyze threshold violations in the Counters panel
After a load test completes, or after you load a test result, in the Load Test Analyzer's toolbar, click either Graphs or Tables.
The Counters panel displays in either the Graphs view or the Tables view.
If the Counters panel is not visible, click Show Counters Panel on the toolbar.
Any nodes that contain threshold violations will include one of the icons listed above.
Expand the node that contains a threshold icon, such as the Computers node, as shown in the previous illustration titled "Computers Node in Counters Panel with threshold violation." Continue to expand the node until you reach the performance counter with the threshold violation. For example, the illustration shows the failed instance of the Microsoft Virtual Machine Failed Bus Network Adapter.
(Optional) Right-click the performance counter with the threshold violation and select one of the following options:
Show Counter on Graph: In the Graphs view, the performance counter is added and highlighted on the selected graph. For more information, see How to: Add and Delete Counters on Graphs in Load Test Results.
Threshold violation icons can also be shown on the graph in the Graphs view. The threshold icon appears on the graph next to the data point where the threshold violation occurred. To do this, click Show Legend drop-down on the toolbar and select Show Threshold Violations on Graph.
Show Counter on Legend: In the legend, the performance counter is added and selected. For more information, see Using the Graphs View Legend to Analyze Load Tests.
The Enter Graph Name dialog box is displayed.
In the Graph name text box, type a name for the new graph and then click OK.
(Optional) Right-click the performance counter again and select Show Counter on Graph.
For more information, see How to: Create Custom Graphs in Load Test Results.
(Optional) If you are analyzing the threshold violation in a completed load test result, consider using the zoom features in the Graphs view. For more information, see How to: Zoom in on a Region of the Graph in Load Test Results.
If any threshold violations were detected during the load test run, a link titled "threshold violations," including the number of violations, will be present in the Load Test Analyzer status bar. You can click the link to display all the threshold violations in the Thresholds table of the Tables view.