# Detect anomalies

This section describes anomaly detection, which enables you to quickly, intuitively, and effectively identify abnormal application behavior in performance tests. You can use these insights to speed your investigation into system performance, and help determine the root cause of detected deviations.

View anomalies in real-time while a performance test is running, or after a test run has finished in the offline view.

In this topic:

## Detect anomalies in online and offline graphs

This task describes how to detect anomalies during a performance test run.

Note: Granularity options differ depending on whether you are viewing graphs during runtime or in offline view. In offline view (available in online and offline graphs), you can select any granularity range down to a minimum of three minutes. In runtime view (online graphs only), you are limited to several predefined granularities.

1. Open the online graphs pane in the lower section of the Performance Test Run page. For details, see Graphs view.

   To detect anomalies in offline results, open the offline results view. For details, see View test results offline.

2. Identify monitors that encountered anomalies.

   1. In the Graphs pane, identify the monitors that encountered anomalies (indicated by a warning icon ).

   2. Click a graph that has an anomaly.

3. Identify and analyze the metric-anomalies.

   1. Click Configure > Show Anomalies to identify plot bands which indicate where anomalies occurred.

   2. Click a plot band to zoom in on the metric-anomaly in the graph.

      Alternatively, drag the slider in the timeline to focus on the time period when the anomaly occurred.

      Tip: You can pull the sliders on both sides to adjust the date range displayed in the graph. You can also move the selection (maintaining the same granularity), and select a new range by clicking on an area that is not part of the selection and dragging.

   3. (Optional) Use the graph legend to display measurements that encountered an anomaly.

      To filter the legend for measurements that have an anomaly, select Has Anomalies, and then click the measurements you want to view in the graph (a maximum of 20 measurements can be displayed).

      To focus on one or several measurements that encountered an anomaly, select Show only me in the Measurement Options menu (for several measurements, use this option for the first measurement, and then select the other measurements).

      You can also see the expected range for a measurement by clicking a specific measurement in the legend or in a graph, or by selecting Show/Hide Anomaly Sleeve in the Measurement Options menu in the expanded view.

      For user interface details, see Evaluate a test's status or Graphs view.

   Note: While anomalies should be apparent in the runtime view (the plot band is not available), we recommend using the offline view because the runtime view only shows anomalies that have occurred in the time frame when the granularity is set to Last 3 minutes.

Back to top

## How LoadRunner Enterprise determines when an anomaly has occurred

LoadRunner Enterprise uses an algorithm to determine anomalies. The algorithm is split into two main parts:

1. Detecting if a point in a series is abnormal, relative to other points.

   LoadRunner Enterprise uses a statistical assumption that the series 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 sleeve. The sleeve is then 6 “weighted standard deviations” around the “weighted mean” of the measurement.

   Every point in the series that is above, or below the sleeve, is considered abnormal.

2. Notifying the user when a measurement behaves abnormally within a certain time range.

   Not all deviations from the sleeve are considered anomalies; only when a measurement deviates from the sleeve for a significant period of time.

   LoadRunner Enterprise determines this by keeping a baseline of the last 30 points for each measurement. Each point that deviates from the sleeve is given a value of 1, and 0 if it is inside the sleeve. For example, a measurement with a baseline sum of 0 means that all points are in the sleeve, whereas a baseline sum close to 30 means that most points are deviating.

   LoadRunner Enterprise notifies the user of 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 sleeve).

   Note: LoadRunner Enterprise gives more weight 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 false-positive notifications.

Back to top

See also:

- Blog: Explore the new online screen enhancements in Performance Center 12.55

https://admhelp.microfocus.com LoadRunner Enterprise 8942
Tips to improve your search results... LoadRunner Enterprise Help Center LoadRunner Enterprise Help LR Enterprise Help 2020_SP2-SP3 All View Local Help Center View Online Help Center back Go back in browser history forward Go forward in browser history Remove search highlights next topic Go to next topic previous topic Go to previous topic Print the current topic Version: