Products | Versions |
---|---|
Spotfire Web Player | 7.0 and lower |
You can automatically trigger creation of a Web Player dump file using Internet Information Services (IIS) Process Orphaning, in order to capture a dump file at the exact moment when an intermittent or infrequent hang or crash occurs. This is useful when a dump file is required for investigation to determine a cause for a Web Player crash or hang.
If a Web Player hangs, it is useful to capture a dump while it is hung/unresponsive, to analyze the state of all threads. It is not easy to do this manually, but it can be achieved using IIS Process Orphaning. Below are the steps to set this.
Install the standard Windows Debugger
Setup Result Folder and Scripts
@if "%_echo%"=="" echo off setlocal set TIMESTAMP=%DATE:~-9%_%TIME% set TIMESTAMP=%TIMESTAMP:/=_% set TIMESTAMP=%TIMESTAMP::=_% set TIMESTAMP=%TIMESTAMP:.=_% set TIMESTAMP=%TIMESTAMP: =_% set FILENAME=c:\autodump\dumps\dump_PID_%1_%TIMESTAMP%.dmp set LOG=c:\autodump\log.txt set COMMAND="C:\Program Files (x86)\Windows Kits\8.1\Debuggers\x64\cdb.exe" -c ".dump /mhtpFidcu /o %FILENAME%;q" -p %1 echo %DATE% %TIME% %COMMAND% >> %LOG% echo tasklist /fi "PID eq %1" >> %LOG% tasklist /fi "PID eq %1" >> %LOG% %COMMAND% >> %LOG% echo %DATE% %TIME% End dump >> %LOG% endlocal
4. Adjust the cdb.exe path if needed.
5. Test the script in a command prompt. "c:\autodump\bin\dump.bat <pid>", where <pid> is the process ID for a Web Player process. The result should be that a dump file is created in the folder c:\autodump\dumps\
Setting up IIS to use the script
If all steps work, this configuration can be used to get automatic dumps for a Web Player that hangs.
Dump Configuration
The parameter "/mhtpFidcu" in the script defines what to include. Changing this parameter will send different content to the dumps.
Note that this script generates minidumps, but a minidump captured with the /ma flag will actually contain more information than a full dump. For details, go to the following link.