Last active
September 7, 2018 08:02
-
-
Save CleanCoder/af11d0c1fd8a2ec9ee17dbe09027789d to your computer and use it in GitHub Desktop.
线上排查
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#自动抓取Dump, 当异常信息包含特定字符串 | |
1. procdump.exe -ma -e 1 -f <Exception Content> <PID> | |
.i.e. procdump.exe -ma -e 1 -f "Commands ouy of sync" 3368 | |
-ma Write a dump file with all process memory. The default dump format only includes thread and handle information. | |
-e Write a dump when the process encounters an unhandled exception. Include the 1 to create dump on first chance exceptions. | |
-f Filter the first chance exceptions. Wildcards (*) are supported. To just display the names without dumping, use a blank ("") filter. | |
C:\>procdump -e 1 -f "" w3wp.exe | |
Display without writing a dump, the exception codes/names of w3wp.exe | |
C:\>procdump -e 1 -f NotFound w3wp.exe | |
Write a mini dump of w3wp.exe if an exception's code/name contains 'NotFound': | |
2. -w 等待程序启动。当程序启动就失败时,可以用此参数创建dump,查看具体异常信息 | |
procdump.exe -ma -e 1 -f "AccessViolationException" -w <process name> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment