简体   繁体   English

从冻结的计算机中获取 .Net 应用程序的 memory 转储

[英]Getting memory dump of .Net app from frozen computer

From time to time my 32bit.Net program hangs the entire windows 10 OS.我的 32bit.Net 程序有时会挂起整个 windows 10 操作系统。 I am unable to get to task manager or a console on the computer to do a dump of my.Net for analysis in windbg.我无法访问计算机上的任务管理器或控制台来转储 my.Net 以在 windbg 中进行分析。 We have tried RDP, RDP to console, remote command line - but no luck accessing the computer - we just have to reboot.我们已经尝试过 RDP、RDP 到控制台、远程命令行 - 但没有运气访问计算机 - 我们只需要重新启动。

Is there a way to get a Windows 10 diagnostic dump when the OS hangs, and then analyze this as a.Net app in WinDBG?有没有办法在操作系统挂起时获得 Windows 10 诊断转储,然后在 WinDBG 中将其分析为 .Net 应用程序? Note: my app is 32bit and dumps created for 64bit apps dont work for my app in WinDbg.注意:我的应用程序是 32 位的,为 64 位应用程序创建的转储不适用于我在 WinDbg 中的应用程序。

thanks谢谢

Unfortunately, if you your windows machine is frozen and is not responding to any input device (keyboard/mouse), the only way to get a dump from that machine is to set up windows kernel debugging.不幸的是,如果您的 windows 机器被冻结并且没有响应任何输入设备(键盘/鼠标),那么从该机器获取转储的唯一方法是设置 windows Z50484C19F1AFDAF3841A0D8D821ED 调试。

You will have to follow the steps described here .您必须按照此处描述的步骤进行操作。 Once your machine is setup for kernel debugging, and you have verified that you can break into the kernel of the machine where your program is running, wait until the machine is unresponsive and then break into the machine.一旦你的机器设置好 kernel 调试,并且你已经验证你可以闯入运行程序的机器的 kernel,等到机器无响应再闯入机器。

This will allow you to examine what windows is currently doing.这将允许您检查 windows 当前正在做什么。 There is a little bit of learning curve to set up the debugger and use windbg kernel debugging but this is the most powerful debugging environment that windows offer.设置调试器和使用 windbg kernel 调试需要一点学习曲线,但这是 windows 提供的最强大的调试环境。 You can download windbg here .你可以在这里下载windbg It comes with comprehensive documentation.它带有全面的文档。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM