Skip to content

Commit 9042d1c

Browse files
authored
Merge pull request #79320 from MS-TimothyMothra/patch-4
Add PerfView instructions to Application Insights SDK Troubleshooting
2 parents 8d3ffdc + 0cf297a commit 9042d1c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

articles/azure-monitor/app/asp-net-troubleshoot-no-data.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,5 +230,34 @@ Follow these instructions to capture troubleshooting logs for your framework.
230230

231231
4. Revert these changes when you are finished.
232232

233+
234+
## <a name="PerfView"></a> Collect logs with PerfView
235+
[PerfView](https://github.com/Microsoft/perfview) is a free diagnostics and performance-analysis tool that help isolate CPU, memory, and other issues by collecting and visualizing diagnostics information from many sources.
236+
237+
The Application Insights SDK log EventSource self-troubleshooting logs that can be captured by PerfView.
238+
239+
To collect logs, download PerfView and run this command:
240+
```cmd
241+
PerfView.exe collect /onlyProviders=*Microsoft-ApplicationInsights-* -MaxCollectSec:300
242+
```
243+
244+
You can modify these parameters as needed.
245+
246+
- **MaxCollectSec**. Set this parameter to prevent PerfView from running indefinitely and affecting the performance of your server.
247+
- **OnlyProviders**. Set this paramater to only collect logs from the SDK. You can customize this list based on your specific investigations.
248+
249+
Our full list of providers is:
250+
251+
- Microsoft-ApplicationInsights-Core
252+
- Microsoft-ApplicationInsights-Extensibility-DependencyCollector
253+
- Microsoft-ApplicationInsights-Extensibility-Rtia-SharedCore
254+
- Microsoft-ApplicationInsights-Extensibility-Web
255+
- Microsoft-ApplicationInsights-Extensibility-WindowsServer
256+
- Microsoft-ApplicationInsights-Web
257+
- Microsoft-ApplicationInsights-WindowsServer-TelemetryChannel
258+
259+
260+
For more information, see [Recording performance traces with PerfView](https://github.com/dotnet/roslyn/wiki/Recording-performance-traces-with-PerfView).
261+
233262
## Still not working...
234263
* [Application Insights forum](https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=ApplicationInsights)

0 commit comments

Comments
 (0)