You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
5
5
services: load-testing
6
6
ms.service: load-testing
7
7
ms.author: nicktrog
8
8
author: ntrogh
9
-
ms.date: 01/14/2022
9
+
ms.date: 03/23/2022
10
10
ms.topic: how-to
11
11
12
12
---
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
14
14
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.
16
16
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.
18
18
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.
20
25
21
26
> [!IMPORTANT]
22
27
> 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/).
23
28
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
+
24
42
## Prerequisites
25
43
26
44
- 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.
27
45
- 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).
28
46
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.
30
50
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:
32
54
33
55
1. In the [Azure portal](https://portal.azure.com), go to your Azure Load Testing resource.
34
56
@@ -39,13 +61,13 @@ In this section, you retrieve and download the Azure Load Testing logs from the
39
61
>[!TIP]
40
62
> To limit the number of tests, use the search box and the **Time range** filter.
41
63
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.
43
65
44
66
:::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.":::
45
67
46
-
1. On the dashboard, select **Download**, and then select **Logs**.
68
+
1. On the dashboard, select **Download**, and then select **Logs**.
47
69
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.":::
49
71
50
72
The browser should now start downloading the JMeter worker node log file *worker.log*.
51
73
@@ -57,8 +79,7 @@ In this section, you retrieve and download the Azure Load Testing logs from the
57
79
58
80
## Next steps
59
81
82
+
- Learn how to [Export the load test result](./how-to-export-test-results.md).
60
83
- Learn how to [Monitor server-side application metrics](./how-to-monitor-server-side-metrics.md).
61
-
62
84
- Learn how to [Get detailed insights for Azure App Service based applications](./how-to-appservice-insights.md).
63
-
64
85
- Learn how to [Compare multiple load test runs](./how-to-compare-multiple-test-runs.md).
0 commit comments