Skip to content

Commit 4831fb3

Browse files
committed
2 parents 5468435 + 1e1818c commit 4831fb3

1,919 files changed

Lines changed: 2823 additions & 2266 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.openpublishing.redirection.developer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5842,6 +5842,10 @@
58425842
{
58435843
"source_path": "support/developer/webapps/iis/www-administration-management/http-bad-request-response-kerberos.md",
58445844
"redirect_url": "/troubleshoot/developer/webapps/iis/www-authentication-authorization/http-bad-request-response-kerberos"
5845+
},
5846+
{
5847+
"source_path": "support/developer/webapps/iis/health-diagnostic-performance/troubleshoot-native-memory-leak-iis-7x-application-pool.md",
5848+
"redirect_url": "/troubleshoot/developer/webapps/iis/site-behavior-performance/troubleshoot-native-memory-leak-iis-7x-application-pool"
58455849
}
58465850
]
58475851
}

support/azure/automation/updates/find-azurermresource-fails.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ Starting in Microsoft AzureRM 6.0.0, the `Find-AzureRmResource` cmdlet functiona
2525

2626
## Resolution
2727

28-
To fix this issue, update your runbooks to use `Get-AzureRmResource` instead of `Find-AzureRmResource`. For more information, see the [usage of Get-AzureRmResource](/powershell/module/azurerm.resources/get-azurermresource?view=azurermps-6.1.0&preserve-view=true).
28+
To fix this issue, update your runbooks to use `Get-AzureRmResource` instead of `Find-AzureRmResource`. For more information, see the [usage of Get-AzureRmResource](/previous-versions/powershell/module/azurerm.resources/get-azurermresource).
2929

3030
[!INCLUDE [Azure Help Support](../../../includes/azure-help-support.md)]

support/azure/azure-kubernetes/extensions/troubleshoot-failed-kubernetes-deployment-offer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ You can use the Azure CLI commands that are described in the [Azure CLI legal te
132132
133133
#### [PowerShell](#tab/PowerShell)
134134
135-
To accept the legal terms through PowerShell, run the cmdlets that are described in the [PowerShell legal terms](/powershell/module/azurerm.marketplaceordering).
135+
To accept the legal terms through PowerShell, run the cmdlets that are described in the [PowerShell legal terms](/powershell/module/az.marketplaceordering).
136136
137137
---
138138

support/azure/synapse-analytics/dedicated-sql/connectivity/dsql-conn-dropped-connections.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ The following PowerShell script downloads and runs the latest version of the Azu
3838

3939
> [!NOTE]
4040
> - To run the tests in Linux, from computers that have no Internet access, or from a containerized environment, see [SQL connectivity checker on GitHub](https://github.com/Azure/SQL-Connectivity-Checker).
41-
> - For more PowerShell commands, see [Available PowerShell commands](/powershell/module/azurerm.sql#sql).
41+
> - For more PowerShell commands, see [Available PowerShell commands](/powershell/module/az.sql#sql).
4242
4343
1. Open Windows PowerShell ISE (in **Administrator** mode if possible).
4444
> [!NOTE]

support/azure/virtual-machines/windows/extension-version-2.2-not-supported.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To work around this problem, use one of the following methods.
2626

2727
### Method 1
2828

29-
Revert to using the Microsoft Entra parameters in the syntax for [Set-AzureRmVmDiskEncryptionExtension](/powershell/module/azurerm.compute/set-azurermvmdiskencryptionextension?view=azurermps-6.2.0&preserve-view=true).
29+
Revert to using the Microsoft Entra parameters in the syntax for [Set-AzVMDiskEncryptionExtension](/powershell/module/az.compute/set-azvmdiskencryptionextension).
3030

3131
The parameters are the following:
3232

@@ -40,7 +40,7 @@ The parameters are the following:
4040
Opt in to the "UnifiedDiskEncryptionForVMs" feature for your subscription by running the following script before you try again to enable encryption:
4141

4242
```powershell
43-
Register-AzureRmProviderFeature -ProviderNamespace "Microsoft.Compute" -FeatureName "UnifiedDiskEncryptionForVMs" # Wait 10 minutes until state transitions to 'Registered' Register-AzureRmResourceProvider -ProviderNamespace Microsoft.Compute
43+
Register-AzProviderFeature -ProviderNamespace "Microsoft.Compute" -FeatureName "UnifiedDiskEncryptionForVMs" # Wait 10 minutes until state transitions to 'Registered' Register-AzResourceProvider -ProviderNamespace Microsoft.Compute
4444
```
4545

4646
## More Information
@@ -50,18 +50,18 @@ Register-AzureRmProviderFeature -ProviderNamespace "Microsoft.Compute" -FeatureN
5050
Run the following script:
5151

5252
```
53-
Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $resourceGroupName -VMName $vmName -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId -KeyEncryptionKeyUrl $keyEncryptionKeyUrl -KeyEncryptionKeyVaultId $keyVaultResourceId -VolumeType 'All';
53+
Set-AzVMDiskEncryptionExtension -ResourceGroupName $resourceGroupName -VMName $vmName -DiskEncryptionKeyVaultUrl $diskEncryptionKeyVaultUrl -DiskEncryptionKeyVaultId $keyVaultResourceId -KeyEncryptionKeyUrl $keyEncryptionKeyUrl -KeyEncryptionKeyVaultId $keyVaultResourceId -VolumeType 'All';
5454
DEBUG: 10:47:22 AM - SetAzureDiskEncryptionExtensionCommand end processing.
55-
Set-AzureRmVMDiskEncryptionExtension : Azure Disk Encryption extension version '2.2' is not supported.
55+
Set-AzVMDiskEncryptionExtension : Azure Disk Encryption extension version '2.2' is not supported.
5656
ErrorCode: NotSupported
5757
ErrorMessage: Azure Disk Encryption extension version '2.2' is not supported.
5858
StatusCode: 409
5959
ReasonPhrase: Conflict
6060
OperationID : 2cb4ac35-e2a5-4cd4-84d9-3174663e0a46
6161
At line:1 char:1
62-
+ Set-AzureRmVMDiskEncryptionExtension -ResourceGroupName $resourceGrou ...
62+
+ Set-AzVMDiskEncryptionExtension -ResourceGroupName $resourceGrou ...
6363
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
64-
+ CategoryInfo : CloseError: (:) [Set-AzureRmVMDiskEncryptionExtension], ComputeCloudException
64+
+ CategoryInfo : CloseError: (:) [Set-AzVMDiskEncryptionExtension], ComputeCloudException
6565
```
6666

6767
## Status

support/developer/webapps/iis/health-diagnostic-performance/toc.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ items:
4343
href: troubleshoot-failed-requests-using-tracing-in-iis-85.md
4444
- name: Troubleshoot high CPU usage in an IIS app pool
4545
href: troubleshoot-high-cpu-in-iis-app-pool.md
46-
- name: Troubleshoot native memory leak in an IIS 7.x application pool
47-
href: troubleshoot-native-memory-leak-iis-7x-application-pool.md
4846
- name: Troubleshoot PHP errors with Failed Request Tracing
4947
href: troubleshoot-php-with-failed-request-tracing.md
5048
- name: Troubleshoot IIS performance issues and application errors
Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
---
2+
title: Data Capture for Managed Memory Leaks
3+
description: This article provides methods to capture data for managed memory leaks.
4+
ms.date: 01/17/2025
5+
ms.custom: sap:Site Behavior and Performance\High memory usage
6+
ms.reviewer: khgupta, v-sidong, mouradl, apkakh
7+
---
8+
9+
# Data capture for managed memory leaks
10+
11+
If your application is consuming high memory due to [managed memory leaks](high-memory-consumption-issues-overview.md#identify-whether-the-memory-leak-is-managed-or-native),
12+
collect memory dumps of the process during the high memory usage event. These dumps can help you analyze and diagnose the cause of these leaks.
13+
14+
This article outlines the steps to capture memory dumps associated with managed memory leaks, both for consistently reproducible and intermittent cases.
15+
16+
For more information on how to analyze memory dumps along with an example scenario, see [Troubleshooting example](high-memory-consumption-issues-overview.md#troubleshooting-example).
17+
18+
## Memory leak issue is easily replicable
19+
20+
If the memory leak issue can be consistently reproduced whenever needed, use one of the following methods to capture data.
21+
22+
### Method 1: Using Procdump
23+
24+
[!INCLUDE [Note when using Procdump](../../../../includes/note-using-procdump.md)]
25+
26+
[!INCLUDE [Same steps when using Procdump](../../../../includes/same-steps-using-procdump.md)]
27+
28+
4. Run the command: `procdump.exe -s 30 -ma -n 3 <PID>`.
29+
30+
[!INCLUDE [How to get actual PID](../../../../includes/how-get-pid.md)]
31+
32+
- `-n`: This parameter is the number of memory dumps to collect.
33+
- `-s`: This parameter is the interval (in seconds) between dumps.
34+
35+
[!INCLUDE [Run command again with new PID](../../../../includes/run-command-new-pid-procdump.md)]
36+
37+
### Method 2: Using DebugDiag
38+
39+
1. Download and install [Debug Diagnostic Tool v2 Update 3.2](https://www.microsoft.com/download/details.aspx?id=103453).
40+
1. When a memory leak occurs, open **DebugDiag 2 Collection** from the **Start** menu:
41+
42+
:::image type="content" source="media/data-capture-managed-memory-leak/debugdiag-2-collection.png" alt-text="Screenshot of DebugDiag 2 Collection.":::
43+
44+
> [!NOTE]
45+
> If you need to change the path where dumps are generated, select **Tools** > **Options And Settings** > **Manual Userdump Save Folder** to change it.
46+
1. Select the **Processes** tab.
47+
1. Locate the **w3wp** process with the **Process ID** column of the application in question.
48+
[!INCLUDE [How to get actual PID](../../../../includes/how-get-pid.md)]
49+
1. Right-click the **w3wp** process, select **Create Userdump Series**, and set the following options (adjust the numbers as needed). Don't select **Save & Close**.
50+
51+
:::image type="content" source="media/data-capture-managed-memory-leak/configure-userdump-series.png" alt-text="Screenshot of Configure UserDump Series.":::
52+
53+
1. Once the memory consumption of **w3wp.exe** reaches the limit as described in the [Memory limits for different scenarios](high-memory-consumption-issues-overview.md#memory-limits-for-different-scenarios), select **Save & Close**.
54+
55+
The dumps will start generating immediately.
56+
57+
## Memory leak issue is intermittent
58+
59+
If the memory leak issue is intermittent, you can automate the data capture process using the following steps:
60+
61+
[!INCLUDE [Note when using Procdump](../../../../includes/note-using-procdump.md)]
62+
63+
[!INCLUDE [Same steps when using Procdump](../../../../includes/same-steps-using-procdump.md)]
64+
65+
4. Run the command: `procdump.exe -s 30 -m <memoryConsumption> -ma -n 3 <PID>`.
66+
67+
[!INCLUDE [How to get actual PID](../../../../includes/how-get-pid.md)]
68+
69+
- `-n`: This parameter is the number of memory dumps to collect.
70+
- `-m`: This parameter is the memory commit threshold (in MB) for creating dumps.
71+
- `-s`: This parameter might have different meanings based on the other parameters in the `procdump` command.
72+
73+
When you use `-m` in the command, `-s` indicates the number of consecutive seconds during which **w3wp.exe**'s memory consumption is >= the threshold specified by `-m`.
74+
75+
For example, if the command is `procdump.exe -s 30 -m 5120 -ma -n 3 <PID>`, the process memory consumption must be >= 5,120 MB (5 GB) for at least 30 seconds to generate a dump. If the first dump is written but then memory drops to less than 5,120 MB, the second and third dumps won't be collected, and the memory must increase back to 5,120 MB or higher and remain so for 30 seconds for the second dump to be generated, and so on. So, `-s` here doesn't necessarily mean the interval between the dumps.
76+
77+
[!INCLUDE [Run command again with new PID](../../../../includes/run-command-new-pid-procdump.md)]
78+
79+
## More information
80+
81+
[Overview of high memory consumption issues](high-memory-consumption-issues-overview.md)

0 commit comments

Comments
 (0)