进程crash,一般去这些目录找信息:
%LOCALAPPDATA%CrashDumps
%ProgramData%MicrosoftWindowsWER
%userprofile%AppDataLocalMicrosoftWindowsWER
%LOCALAPPDATA%CrashDumps
参考https://docs.microsoft.com/en-us/windows/win32/wer/collecting-user-mode-dumps
参考https://publib.boulder.ibm.com/httpserv/ihsdiag/win32_tools_doc.html
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumps" /f
#为httpd.exe设置,如果你是别的程序,替换程序名称,注意带上后缀名,比如notepad.exe
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /f
#设置crashdump存放目录的,默认是%LOCALAPPDATA%CrashDumps,可以指定到别的目录,比如C:crashdumps
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /v DumpFolder /t REG_EXPAND_SZ /d "%LOCALAPPDATA%CrashDumps" /f
或
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /v DumpFolder /t REG_EXPAND_SZ /d "C:crashdumps" /f
#设置crashdump最大数量的,超出后,新的覆盖旧的
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /v DumpCount /t REG_DWORD /d "100" /f
#设置crashdump类型,默认是minidump,1代表minidump,2代表fulldump
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /v DumpType /t REG_DWORD /d "1" /f
或
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsWindows Error ReportingLocalDumpshttpd.exe" /v DumpType /t REG_DWORD /d "2" /f