How to collect dotnet core app dumps from Linux and analyze dumps on Linux
Published Feb 11 2020 06:33 PM 4,197 Views

You will need a Linux VM to analyze dumps from Linux, so the instructions below included how to create an Linux VM in Azure and how to RDP to it.


1. Create a Linux VM via Azure Portal, for example, using Linux ubuntu 18.04. Setup a user and password for later use.

2.  Download Putty from

3.  Connect to the Linux VM using Putty (instructions see

4. Follow instructions on to install xfce and enable xrdp

5. Open port for RDP via command below:

az vm open-port --resource-group LinuxTestJasonXu --name LinuxJasonXu --port 3389

where LinuxTestJasonXu needs to be replaced with your resource group name and LinuxJasonXu  needs to be replaced with your Linux VM name.

6. Download RDP file from Azure Portal

7. Connect to the Linux VM using RDP client with user name and password set at step 1.

8. Install dotnet core from

9. Install dotnet-dump tool from

10. Collect dump using the following command:

dotnet-dump collect -p 14256 --type heap

where 14256 is the PID that needs to be replaced with the desired PID.

Further options of dump collection command see reference at

11. Analyze dump using dotnet-dump analyze, further instructions see docs below:


For example:


jasonxucss@LinuxJasonXu:~$ dotnet-dump analyze /home/jasonxucss/cases/Dumps/HighMem.dmp

Loading core dump: /home/jasonxucss/cases/Dumps/HighMem.dmp ...

Ready to process analysis commands. Type 'help' to list available commands or 'help [command]' to get detailed help on a command.

Type 'quit' or 'exit' to exit the session.

> dumpheap -stat


Explore the available debug commands by enter help at the prompt.                                                                                                                                                                                        


Version history
Last update:
‎Feb 11 2020 06:33 PM
Updated by: