Skip to content

Commit 6c8439e

Browse files
authored
Merge pull request #192618 from ntrogh/alt-troubleshooting
[Azure Load Testing] Restructured intro para for downloading logs
2 parents 9806a3e + 3e29a1e commit 6c8439e

File tree

3 files changed

+34
-13
lines changed

3 files changed

+34
-13
lines changed
Lines changed: 34 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,56 @@
11
---
22
title: Troubleshoot load test errors
33
titleSuffix: Azure Load Testing
4-
description: Learn how you can troubleshoot errors during your load test by downloading and analyzing the Apache JMeter logs in the Azure portal.
4+
description: Learn how you can diagnose and troubleshoot errors in Azure Load Testing. Download and analyze the Apache JMeter worker logs in the Azure portal.
55
services: load-testing
66
ms.service: load-testing
77
ms.author: nicktrog
88
author: ntrogh
9-
ms.date: 01/14/2022
9+
ms.date: 03/23/2022
1010
ms.topic: how-to
1111

1212
---
13-
# Troubleshoot load test errors by downloading Apache JMeter logs in Azure Load Testing Preview
13+
# Troubleshoot load test errors by downloading Apache JMeter logs
1414

15-
In this article, you'll learn how to download the Apache JMeter logs for Azure Load Testing Preview in the Azure portal. You can use the logging information to troubleshoot problems while the Apache JMeter script runs.
15+
Learn how to diagnose and troubleshoot errors while running a load test with Azure Load Testing Preview. Download the Apache JMeter worker logs or load test results for detailed logging information.
1616

17-
The Apache JMeter log can help you identify problems in your JMX file, or run-time issues that occur while the test is running. For example, the application endpoint might be unavailable, or the JMX file might contain invalid credentials.
17+
When you start a load test, the Azure Load Testing test engines run your Apache JMeter script. Errors can occur at different levels. For example, during the execution of the JMeter script, while connecting to the application endpoint, or in the test engine instance.
1818

19-
When you run a load test, the Azure Load Testing test engines execute your Apache JMeter test script. While your load test is running, Apache JMeter stores detailed logging information in the worker node logs. You can download the JMeter worker node log for your load test run from the Azure portal to help you diagnose load test errors.
19+
You can use different sources of information to diagnose these errors:
20+
21+
- [Download the Apache JMeter worker logs](#download-apache-jmeter-worker-logs) to investigate issues with JMeter and the test script execution.
22+
- [Export the load test result](./how-to-export-test-results.md) and analyze the response code and response message of each HTTP request.
23+
24+
There might also be problems with the application endpoint itself. If you host the application on Azure, you can [configure server-side monitoring](./how-to-monitor-server-side-metrics.md) to get detailed insights about the application components.
2025

2126
> [!IMPORTANT]
2227
> Azure Load Testing is currently in preview. For legal terms that apply to Azure features that are in beta, in preview, or otherwise not yet released into general availability, see the [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
2328
29+
## Load test error indicators
30+
31+
After running a load test, there are multiple error indicators available:
32+
33+
- The test run **Status** information is **Failed**.
34+
35+
:::image type="content" source="media/how-to-find-download-logs/dashboard-test-failed.png" alt-text="Screenshot that shows the load test dashboard, highlighting status information for a failed test.":::
36+
37+
- The test run statistics shows a non-zero **Error percentage** value.
38+
- The **Errors** graph in the client-side metrics shows errors.
39+
40+
:::image type="content" source="media/how-to-find-download-logs/dashboard-errors.png" alt-text="Screenshot that shows the load test dashboard, highlighting the error information.":::
41+
2442
## Prerequisites
2543

2644
- An Azure account with an active subscription. If you don't have an Azure subscription, [create a free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F) before you begin.
2745
- An Azure load testing resource that has a completed test run. If you need to create an Azure load testing resource, see [Create and run a load test](./quickstart-create-and-run-load-test.md).
2846

29-
## Access and download logs for your load test
47+
## Download Apache JMeter worker logs
48+
49+
When you run a load test, the Azure Load Testing test engines execute your Apache JMeter test script. During the load test, Apache JMeter stores detailed logging in the worker node logs. You can download these JMeter worker logs for each test run in the Azure portal.
3050

31-
In this section, you retrieve and download the Azure Load Testing logs from the Azure portal.
51+
For example, if there's a problem with your JMeter script, the load test status will be **Failed**. In the worker logs you might find additional information about the cause of the problem.
52+
53+
To download the worker logs for an Azure Load Testing test run, follow these steps:
3254

3355
1. In the [Azure portal](https://portal.azure.com), go to your Azure Load Testing resource.
3456

@@ -39,13 +61,13 @@ In this section, you retrieve and download the Azure Load Testing logs from the
3961
>[!TIP]
4062
> To limit the number of tests, use the search box and the **Time range** filter.
4163
42-
1. In the list of tests, select the test run you're working with to view its details.
64+
1. Select a test run from the list to view the test run dashboard.
4365

4466
:::image type="content" source="media/how-to-find-download-logs/test-run.png" alt-text="Screenshot that shows a list of test runs for the selected load test.":::
4567

46-
1. On the dashboard, select **Download**, and then select **Logs**.
68+
1. On the dashboard, select **Download**, and then select **Logs**.
4769

48-
:::image type="content" source="media/how-to-find-download-logs/logs.png" alt-text="Screenshot that shows how to download the load test logs from the test run details page.":::
70+
:::image type="content" source="media/how-to-find-download-logs/logs.png" alt-text="Screenshot that shows how to download the test log files from the test run details page.":::
4971

5072
The browser should now start downloading the JMeter worker node log file *worker.log*.
5173

@@ -57,8 +79,7 @@ In this section, you retrieve and download the Azure Load Testing logs from the
5779

5880
## Next steps
5981

82+
- Learn how to [Export the load test result](./how-to-export-test-results.md).
6083
- Learn how to [Monitor server-side application metrics](./how-to-monitor-server-side-metrics.md).
61-
6284
- Learn how to [Get detailed insights for Azure App Service based applications](./how-to-appservice-insights.md).
63-
6485
- Learn how to [Compare multiple load test runs](./how-to-compare-multiple-test-runs.md).
121 KB
Loading
62.8 KB
Loading

0 commit comments

Comments
 (0)