%3CLINGO-SUB%20id%3D%22lingo-sub-1168407%22%20slang%3D%22en-US%22%3EHow%20to%20collect%20dotnet%20core%20app%20dumps%20from%20Linux%20and%20analyze%20dumps%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1168407%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20will%20need%20a%20Linux%20VM%20to%20analyze%20dumps%20from%20Linux%2C%20so%20the%20instructions%20below%20included%20how%20to%20create%20an%20Linux%20VM%20in%20Azure%20and%20how%20to%20RDP%20to%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20Linux%20VM%20via%20Azure%20Portal%2C%20for%20example%2C%20using%20Linux%20ubuntu%2018.04.%20Setup%20a%20user%20and%20password%20for%20later%20use.%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3B%20Download%20Putty%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fwww.ssh.com%252Fssh%252Fputty%252Fdownload%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185007503%26amp%3Bsdata%3DQjdfT7oct1yNgcUUEdwHgAcOlfFsMWryrQOH3Kd9ciA%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.ssh.com%2Fssh%2Fputty%2Fdownload%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E3.%26nbsp%3B%20Connect%20to%20the%20Linux%20VM%20using%20Putty%20(instructions%20see%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fvirtual-machines%252Flinux%252Fssh-from-windows%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185017456%26amp%3Bsdata%3DsNMu%252FQqTPdtscL5lRgZ2N%252BgiuEHTYE9%252B646r%252F%252FmZ58U%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fssh-from-windows%3C%2FA%3E)%3C%2FP%3E%0A%3CP%3E4.%20Follow%20instructions%20on%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fvirtual-machines%252Flinux%252Fuse-remote-desktop%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185017456%26amp%3Bsdata%3DmS2TfhS7rcIPi5XMhAKnesJY0TAn3eNWOK%252F81QyageY%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fuse-remote-desktop%3C%2FA%3E%20to%20install%20xfce%20and%20enable%20xrdp%3C%2FP%3E%0A%3CP%3E5.%20Open%20port%20for%20RDP%20via%20command%20below%3A%3C%2FP%3E%0A%3CP%3Eaz%20vm%20open-port%20--resource-group%20LinuxTestJasonXu%20--name%20LinuxJasonXu%20--port%203389%3C%2FP%3E%0A%3CP%3Ewhere%26nbsp%3BLinuxTestJasonXu%20needs%20to%20be%20replaced%20with%20your%20resource%20group%20name%20and%26nbsp%3BLinuxJasonXu%26nbsp%3B%20needs%20to%20be%20replaced%20with%20your%20Linux%20VM%20name.%3C%2FP%3E%0A%3CP%3E6.%20Download%20RDP%20file%20from%20Azure%20Portal%3C%2FP%3E%0A%3CP%3E7.%20Connect%20to%20the%20Linux%20VM%20using%20RDP%20client%20with%20user%20name%20and%20password%20set%20at%20step%201.%3C%2FP%3E%0A%3CP%3E8.%20Install%20dotnet%20core%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Finstall%252Flinux-package-manager-ubuntu-1904%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DyXGhpQ7pV1k83OWvbo%252FSQTGl%252FmU7lK0xQdeNKGfkO%252F0%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Finstall%2Flinux-package-manager-ubuntu-1904%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E9.%20Install%20dotnet-dump%20tool%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DDorrifXMB%252B1KW5yO7cUM2CuHTh7BQ%252ForXuLjgpZ8xHQ%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E10.%20Collect%20dump%20using%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3Edotnet-dump%20collect%20-p%2014256%20--type%20heap%3C%2FP%3E%0A%3CP%3Ewhere%2014256%20is%20the%20PID%20that%20needs%20to%20be%20replaced%20with%20the%20desired%20PID.%3C%2FP%3E%0A%3CP%3EFurther%20options%20of%20dump%20collection%20command%20see%20reference%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DDorrifXMB%252B1KW5yO7cUM2CuHTh7BQ%252ForXuLjgpZ8xHQ%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E11.%20Analyze%20dump%20using%20dotnet-dump%20analyze%2C%20further%20instructions%20see%20docs%20below%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185037369%26amp%3Bsdata%3Dkb1XF10JGeN402%252B6dp%252BwNfX1zj8LmfKgNZ3E8jFg%252F6c%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fgithub.com%252Fdotnet%252Fdiagnostics%252Fblob%252Fmaster%252Fdocumentation%252Fdotnet-dump-instructions.md%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185037369%26amp%3Bsdata%3DQePQja8wCgCu6nf16F2UC58fwrKy7xb7fJxH9dh%252BpYY%253D%26amp%3Breserved%3D0%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgithub.com%2Fdotnet%2Fdiagnostics%2Fblob%2Fmaster%2Fdocumentation%2Fdotnet-dump-instructions.md%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ejasonxucss%40LinuxJasonXu%3A~%24%20dotnet-dump%20analyze%20%2Fhome%2Fjasonxucss%2Fcases%2FDumps%2FHighMem.dmp%3C%2FP%3E%0A%3CP%3ELoading%20core%20dump%3A%20%2Fhome%2Fjasonxucss%2Fcases%2FDumps%2FHighMem.dmp%20...%3C%2FP%3E%0A%3CP%3EReady%20to%20process%20analysis%20commands.%20Type%20'help'%20to%20list%20available%20commands%20or%20'help%20%5Bcommand%5D'%20to%20get%20detailed%20help%20on%20a%20command.%3C%2FP%3E%0A%3CP%3EType%20'quit'%20or%20'exit'%20to%20exit%20the%20session.%3C%2FP%3E%0A%3CP%3E%26gt%3B%20dumpheap%20-stat%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExplore%20the%20available%20debug%20commands%20by%20enter%20help%20at%20the%20prompt.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1168407%22%20slang%3D%22en-US%22%3E%3CP%3EYou%20will%20need%20a%20Linux%20VM%20to%20analyze%20dumps%20from%20Linux%2C%20so%20the%20instructions%20below%20included%20how%20to%20create%20an%20Linux%20VM%20in%20Azure%20and%20how%20to%20RDP%20to%20it.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E1.%20Create%20a%20Linux%20VM%20via%20Azure%20Portal%2C%20for%20example%2C%20using%20Linux%20ubuntu%2018.04.%20Setup%20a%20user%20and%20password%20for%20later%20use.%3C%2FP%3E%0A%3CP%3E2.%26nbsp%3B%20Download%20Putty%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fwww.ssh.com%252Fssh%252Fputty%252Fdownload%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185007503%26amp%3Bsdata%3DQjdfT7oct1yNgcUUEdwHgAcOlfFsMWryrQOH3Kd9ciA%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fwww.ssh.com%2Fssh%2Fputty%2Fdownload%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E3.%26nbsp%3B%20Connect%20to%20the%20Linux%20VM%20using%20Putty%20(instructions%20see%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fvirtual-machines%252Flinux%252Fssh-from-windows%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185017456%26amp%3Bsdata%3DsNMu%252FQqTPdtscL5lRgZ2N%252BgiuEHTYE9%252B646r%252F%252FmZ58U%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fssh-from-windows%3C%2FA%3E)%3C%2FP%3E%0A%3CP%3E4.%20Follow%20instructions%20on%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fazure%252Fvirtual-machines%252Flinux%252Fuse-remote-desktop%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185017456%26amp%3Bsdata%3DmS2TfhS7rcIPi5XMhAKnesJY0TAn3eNWOK%252F81QyageY%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fvirtual-machines%2Flinux%2Fuse-remote-desktop%3C%2FA%3E%20to%20install%20xfce%20and%20enable%20xrdp%3C%2FP%3E%0A%3CP%3E5.%20Open%20port%20for%20RDP%20via%20command%20below%3A%3C%2FP%3E%0A%3CP%3Eaz%20vm%20open-port%20--resource-group%20LinuxTestJasonXu%20--name%20LinuxJasonXu%20--port%203389%3C%2FP%3E%0A%3CP%3Ewhere%26nbsp%3BLinuxTestJasonXu%20needs%20to%20be%20replaced%20with%20your%20resource%20group%20name%20and%26nbsp%3BLinuxJasonXu%26nbsp%3B%20needs%20to%20be%20replaced%20with%20your%20Linux%20VM%20name.%3C%2FP%3E%0A%3CP%3E6.%20Download%20RDP%20file%20from%20Azure%20Portal%3C%2FP%3E%0A%3CP%3E7.%20Connect%20to%20the%20Linux%20VM%20using%20RDP%20client%20with%20user%20name%20and%20password%20set%20at%20step%201.%3C%2FP%3E%0A%3CP%3E8.%20Install%20dotnet%20core%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Finstall%252Flinux-package-manager-ubuntu-1904%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DyXGhpQ7pV1k83OWvbo%252FSQTGl%252FmU7lK0xQdeNKGfkO%252F0%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Finstall%2Flinux-package-manager-ubuntu-1904%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E9.%20Install%20dotnet-dump%20tool%20from%20%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DDorrifXMB%252B1KW5yO7cUM2CuHTh7BQ%252ForXuLjgpZ8xHQ%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E10.%20Collect%20dump%20using%20the%20following%20command%3A%3C%2FP%3E%0A%3CP%3Edotnet-dump%20collect%20-p%2014256%20--type%20heap%3C%2FP%3E%0A%3CP%3Ewhere%2014256%20is%20the%20PID%20that%20needs%20to%20be%20replaced%20with%20the%20desired%20PID.%3C%2FP%3E%0A%3CP%3EFurther%20options%20of%20dump%20collection%20command%20see%20reference%20at%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185027412%26amp%3Bsdata%3DDorrifXMB%252B1KW5yO7cUM2CuHTh7BQ%252ForXuLjgpZ8xHQ%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E11.%20Analyze%20dump%20using%20dotnet-dump%20analyze%2C%20further%20instructions%20see%20docs%20below%3A%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fdocs.microsoft.com%252Fen-us%252Fdotnet%252Fcore%252Fdiagnostics%252Fdotnet-dump%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185037369%26amp%3Bsdata%3Dkb1XF10JGeN402%252B6dp%252BwNfX1zj8LmfKgNZ3E8jFg%252F6c%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fdotnet%2Fcore%2Fdiagnostics%2Fdotnet-dump%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fnam06.safelinks.protection.outlook.com%2F%3Furl%3Dhttps%253A%252F%252Fgithub.com%252Fdotnet%252Fdiagnostics%252Fblob%252Fmaster%252Fdocumentation%252Fdotnet-dump-instructions.md%26amp%3Bdata%3D02%257C01%257Chuanchix%2540microsoft.com%257Cdfca19f64f0f4568c14708d7af29fc98%257C72f988bf86f141af91ab2d7cd011db47%257C1%257C0%257C637170467185037369%26amp%3Bsdata%3DQePQja8wCgCu6nf16F2UC58fwrKy7xb7fJxH9dh%252BpYY%253D%26amp%3Breserved%3D0%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%20target%3D%22_blank%22%3Ehttps%3A%2F%2Fgithub.com%2Fdotnet%2Fdiagnostics%2Fblob%2Fmaster%2Fdocumentation%2Fdotnet-dump-instructions.md%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EFor%20example%3A%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3Ejasonxucss%40LinuxJasonXu%3A~%24%20dotnet-dump%20analyze%20%2Fhome%2Fjasonxucss%2Fcases%2FDumps%2FHighMem.dmp%3C%2FP%3E%0A%3CP%3ELoading%20core%20dump%3A%20%2Fhome%2Fjasonxucss%2Fcases%2FDumps%2FHighMem.dmp%20...%3C%2FP%3E%0A%3CP%3EReady%20to%20process%20analysis%20commands.%20Type%20'help'%20to%20list%20available%20commands%20or%20'help%20%5Bcommand%5D'%20to%20get%20detailed%20help%20on%20a%20command.%3C%2FP%3E%0A%3CP%3EType%20'quit'%20or%20'exit'%20to%20exit%20the%20session.%3C%2FP%3E%0A%3CP%3E%26gt%3B%20dumpheap%20-stat%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EExplore%20the%20available%20debug%20commands%20by%20enter%20help%20at%20the%20prompt.%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%20%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-SUB%20id%3D%22lingo-sub-1173423%22%20slang%3D%22en-US%22%3ERe%3A%20How%20to%20collect%20dotnet%20core%20app%20dumps%20from%20Linux%20and%20analyze%20dumps%20on%20Linux%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1173423%22%20slang%3D%22en-US%22%3E%3CP%3ESteps%204-7%20seem%20to%20be%20unnecessary%2C%20since%20all%20the%20tools%20are%20command-line%3C%2FP%3E%3C%2FLINGO-BODY%3E
Microsoft

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 https://www.ssh.com/ssh/putty/download

3.  Connect to the Linux VM using Putty (instructions see https://docs.microsoft.com/en-us/azure/virtual-machines/linux/ssh-from-windows)

4. Follow instructions on https://docs.microsoft.com/en-us/azure/virtual-machines/linux/use-remote-desktop 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 https://docs.microsoft.com/en-us/dotnet/core/install/linux-package-manager-ubuntu-1904

9. Install dotnet-dump tool from https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump

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 https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump

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

https://docs.microsoft.com/en-us/dotnet/core/diagnostics/dotnet-dump

https://github.com/dotnet/diagnostics/blob/master/documentation/dotnet-dump-instructions.md

 

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.                                                                                                                                                                                        

 

1 Comment
Visitor

Steps 4-7 seem to be unnecessary, since all the tools are command-line