How to collect dotnet core app dumps from Linux and analyze dumps on Linux

This post has been republished via RSS; it originally appeared at: IIS Support Blog articles.

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.                                                                                                                                                                                        


REMEMBER: these articles are SYNDICATED. Your best bet to get a reply is to follow the link at the top of the post to the ORIGINAL post! BUT you're more than welcome to start discussions here:

This site uses Akismet to reduce spam. Learn how your comment data is processed.