使用procedump捕获未处理异常的dump

Posted nocanstillbb

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了使用procedump捕获未处理异常的dump相关的知识,希望对你有一定的参考价值。

-ma full memory dump, always do this on 2003 as 4gb is not much and it is good to have the heap

-mp miniplus, 2007 – 2010 grabs the essential linked heap memory

-n 3 Typical hang dump to get 3 dumps - We typically want 3 dumps, so we can see what changes, or what DOESN‘T change, in memory (i.e., is the same thread waiting in all 3 dumps?). A single dump file is typcially not that useful.

-accepteula self explanatory

-e create a dump file only when an UNHANDLED exception occurs. We‘re typically not interested in HANDLED exceptions, because those types of exceptions get HANDLED and your program will continue to run.

 

And last but not least, we need a place to store the dump file

 

So, an example of a dump of a typical Exchange store.exe hang would be something like this: 

Procdump -e –mp store.exe –n 3 –accepteula  d:\dumps\store_issue.dmp

This will set up procdump to monitor store.exe and when/if an unhandled exception occurs, it will create 3 dump files and store them in the specified location.

以上是关于使用procedump捕获未处理异常的dump的主要内容,如果未能解决你的问题,请参考以下文章

Android_程序未处理异常的捕获与处理

Android中使用UncaughtExceptionHandler来处理未捕获的异常

WPF捕获全局未处理异常

自己定义Application的未捕获异常处理

使用 async/await 时在 Express 中捕获未处理的异常

在 Android 中设置全局未捕获异常处理程序的理想方法