Collecting A Memory Dump From Azure App Services

Introduction

A memory dump is helpful when you need to figure out what's wrong with your app service. For instance, you could want to examine the memory dump to determine the reason for an issue if you deployed new code and saw that the app service was restarting or using more memory than usual.

Keep in mind that you can only dump the memory of an app service if the always-on setting is enabled and the app service plan is Standard or higher.

Step 1

Open your App Service and go to Collect Memory Dump under Diagnose and Solve Problems.

Collecting a Memory Dump from Azure App Services

Step 2

Then we must select the path that the dumps will be saved. So, it’s better to create a new storage account by selecting Create new radio button and providing the Account name. After that, click on the Save button.

Collecting a Memory Dump from Azure App Services

Step 3

Select the mode Collect and Analyze Data. It will analyze the data and generate an HTML file that anyone can navigate through the information. And if you select the mode Collect Data Only, it will give a raw dump memory file.

As an instance, you can select more than one instance if you have many and then click on the Collect Memory Dump button.

Collecting a Memory Dump from Azure App Services

Step 4

Then you will receive a data file (The dump) and a report (A HTML page with organized information).

Collecting a Memory Dump from Azure App Services

Collecting a Memory Dump from Azure App Services

Summary

In this article, we learned how to collect memory dumps from Azure App Services. Kindly use the comments box if you have any questions.