Anomalies
This section describes anomaly detection, which enables you to quickly, intuitively, and effectively identify abnormal application behavior in load tests.
Anomaly detection overview
Anomaly detection insights speed your investigation into system performance, and help determine the root cause of detected deviations. You can view anomalies in real time while a load test is running, or after a test run has finished.
An algorithm is used to determine when an anomaly has occurred. The algorithm is split into two main parts:

Detecting if a point in a series is abnormal, relative to other points. For details, see Detecting an anomaly.

Notifying the user when a measurement behaves abnormally within a certain time range. For details, see Notification of an anomaly.
Detecting an anomaly
The detection engine uses a statistical assumption, that the series of data points approximately follows a normal distribution, and deviates in a standard manner over time.
For every measurement, it continuously calculates the mean and standard deviation. Then, for each point, weighted versions of the mean and standard deviation (which give higher priority to more recent points) are calculated. These weighted results are used to create the range. The range is then 6 “weighted standard deviations” around the “weighted mean” of the measurement.
Every point in the series that is above, or below the normal range, is considered abnormal. A ranking is assigned to each anomaly based on the earliest occurrence, size, and duration of the deviation. The rank represents how the anomaly compares to other anomalies seen for the metric in the same run. The more severe or unusual the anomaly, the higher the rank. The rank range is between 05.
When a measurement is detected to have behaved abnormally, it displays the sum of the metric’s anomaly ranks in the metrics pane, and the number of anomalies in parenthesis. For details, see Metrics tree.
Notification of an anomaly
Users are notified when a measurement behaves abnormally within a certain time period.
Not all deviations are considered anomalies; only when a measurement deviates from the normal range for a significant period of time.
An anomaly is determined by comparing current values to a baseline of the last 30 points for each measurement. Each point that deviates from the range is assigned a value of 1, and 0 if it is inside the range. For example, a measurement with a baseline sum of 0 means that all points are in the range, whereas a baseline sum close to 30 means that most points are deviating.
Users are notified about an anomaly when the baseline sum for a measurement is above 18. This means that 60% of the points in the baseline are above, or below, the normal range.
Note: More weight is given to measurements with a baseline that has consecutive deviations (0000011111) than to an unstable baseline (0101010101). This is because measurements that spike are not deviating in a standard way, and are more likely to result in falsepositive notifications.
Understanding the graph
Each dot in the graph represents the values of the selected metric over time.
Anomalies are shown as a thick line in the graph. When you click an anomaly, the graph displays a shaded area. The intensity of the shading is determined by the rank of the anomaly—the higher the rank, the stronger the shading.
Placing the cursor on any part of the line and clicking in the graph generates a tooltip with information about the anomaly at that particular point in time.
See also: