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
Copy file name to clipboardExpand all lines: support/developer/webapps/iis/site-behavior-performance/high-memory-consumption-issues-overview.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -70,7 +70,7 @@ Once you've confirmed that the **w3wp.exe** process is experiencing high memory
70
70
1. Reproduce the issue.
71
71
1. To verify whether it's a managed or native memory leak, monitor the counters:
72
72
73
-
-**Managed memory leak**: If the **Private Bytes** counter and the **# Bytes in all Heaps** counter increase at the same rate (the difference between them remains constant), it indicates a managed memory leak.
73
+
-**Managed memory leak**: If the **Private Bytes** counter and the **Virtual Bytes** counter increase at the same rate (the difference between them remains constant), it indicates a managed memory leak.
74
74
75
75
:::image type="content" source="media/high-memory-consumption-issues-overview/managed-memory-leak-indicator.png" alt-text="Screenshot showing how the counters change for a managed memory leak.":::
76
76
@@ -87,13 +87,13 @@ Once you've confirmed the type of memory leak, the next step is to use tools to
87
87
88
88
## .NET Core applications
89
89
90
-
If the application in question is .NET Core and hosted on IIS in in-process mode, use the data collection steps in [Data capture for managed memory leaks](data-capture-managed-memory-leak.md) and [Troubleshoot native memory leak in an IIS 7.x application pool](troubleshoot-native-memory-leak-iis-7x-application-pool.md). However, if the application is hosted on IIS in out-of-process mode, modify the actions to investigate the dotnet process (**dotnet.exe** unless otherwise specified) instead of **w3wp.exe**. The same thing applies to self-hosted .NET Core applications.
90
+
If the application in question is .NET Core and hosted on IIS in in-process mode, use the data collection steps in [Data capture for managed memory leaks](data-capture-managed-memory-leak.md). However, if the application is hosted on IIS in out-of-process mode, modify the actions to investigate the dotnet process (**dotnet.exe** unless otherwise specified) instead of **w3wp.exe**. The same thing applies to self-hosted .NET Core applications.
91
91
92
92
## Troubleshooting example
93
93
94
94
Assume you have an application hosted on an IIS server and you experience high memory usage (the memory spikes up to around 7 GB by doing a stress test) when accessing a specific URL, follow these steps to diagnose the issue:
95
95
96
-
1. Check Performance Monitor by following the steps in [Identify whether the memory leak is managed or native](#identify-whether-the-memory-leak-is-managed-or-native). If you notice **Private Bytes** and **# Bytes in all Heaps**remain constant, it's a managed memory leak.
96
+
1. Check Performance Monitor by following the steps in [Identify whether the memory leak is managed or native](#identify-whether-the-memory-leak-is-managed-or-native). If you notice the difference between **Private Bytes** and **Virtual Bytes**remains constant, it's a managed memory leak.
97
97
1. Collect dump files by following the steps described in [Using DebugDiag](data-capture-managed-memory-leak.md#method-2-using-debugdiag).
98
98
1. Open the dump files in [WinDbg](/windows-hardware/drivers/debugger/). For high memory scenarios, you can use the following commands:
0 commit comments