Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update outdated list-processes command on diagnostics tutorials doc #1575

Merged
merged 1 commit into from
Sep 17, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Next, lets run the webapi (dotnet run) and before hitting the above URL that wil
> dotnet-counters monitor --refresh-interval 1 -p 4807
> ```

4807 is the process identifier which can be found using dotnet-trace list-processes. The refresh-interval is the number of seconds before refreshes.
4807 is the process identifier which can be found using dotnet-trace ps. The refresh-interval is the number of seconds before refreshes.

The output should be similar to the below:

Expand Down Expand Up @@ -45,7 +45,7 @@ Most commonly when analyzing possible memory leaks, we need access to as much of
> sudo ./dotnet-dump collect -p 4807
> ```

4807 is the process identifier which can be found using dotnet-trace list-processes. The result is a core dump located in the same folder. Please note that to generate core dumps, dotnet-dump requires sudo.
4807 is the process identifier which can be found using dotnet-trace ps. The result is a core dump located in the same folder. Please note that to generate core dumps, dotnet-dump requires sudo.


### Analyzing the core dump
Expand Down
4 changes: 2 additions & 2 deletions documentation/tutorial/app_running_slow_highcpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Lets run the webapi (dotnet run) and before hitting the above URL that will caus
> dotnet-counters monitor --refresh-interval 1 -p 22884
> ```

22884 is the process identifier which can be found using dotnet-trace list-processes. The refresh-interval is the number of seconds before refreshes.
22884 is the process identifier which can be found using dotnet-trace ps. The refresh-interval is the number of seconds before refreshes.

The output should be similar to the below:

Expand Down Expand Up @@ -49,7 +49,7 @@ In order to generate profiler traces of a .net core application, we can use the
> dotnet-trace collect -p 2266 --providers Microsoft-DotNETCore-SampleProfiler
> ```

2266 is the process identifier which can be found using dotnet-trace list-processes. Let dotnet-trace run for about 20-30 seconds and then hit enter to exit the collection. The result is a nettrace file located in the same folder. nettrace files are a great way to use existing analysis tools on Windows (such as PerfView) to diagnose performance problems.
2266 is the process identifier which can be found using dotnet-trace ps. Let dotnet-trace run for about 20-30 seconds and then hit enter to exit the collection. The result is a nettrace file located in the same folder. nettrace files are a great way to use existing analysis tools on Windows (such as PerfView) to diagnose performance problems.

Alternatively, you can get the perf and LTTng trace data in nettrace format by using the perfcollect tool (please see Installing the tools section). Once installed, run the following command:

Expand Down
2 changes: 1 addition & 1 deletion documentation/tutorial/hung_app.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ http://localhost:5000/api/diagscenario/deadlock
Let the request run for about 10-15 seconds. The first thing we need in order to generate a core dump is to find the process identifier of our webapi process:

> ```bash
> $ dotnet-trace list-processes
> $ dotnet-trace list-ps
> ...
> 80926 webapi /home/marioh/webapi/bin/Debug/netcoreapp3.0/webapi
> sudo dotnet triggerdump.dll 80926 500
Expand Down
4 changes: 2 additions & 2 deletions documentation/tutorial/intermittent_memory_spike.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Let's run the webapi (dotnet run) and before navigating to the above URL (specif
> dotnet-counters monitor --refresh-interval 1 -p 4807
> ```

4807 is the process identifier which can be found using dotnet-trace list-processes. The refresh-interval is the number of seconds before refreshes.
4807 is the process identifier which can be found using dotnet-trace ps. The refresh-interval is the number of seconds before refreshes.

The output should be similar to the below:

Expand Down Expand Up @@ -151,7 +151,7 @@ else
We can now build the tool (dotnet build) and run it against our application. Once built, restart the test webapi, get the process id from dotnet-trace and run triggerdump:

> ```bash
> dotnet-trace list-processes
> dotnet-trace ps
> ...
> 80926 webapi /home/marioh/webapi/bin/Debug/netcoreapp3.0/webapi
> sudo dotnet triggerdump.dll 80926 500
Expand Down