performance_stackdump.ps1

A PowerShell script that assists with the capture of stack dumps with a given interval.

performance_stackdump.ps1

performance_stackdump.ps1 [[-appPools] ] [[-howMany] ] [[-interval] ] [[-filePath] ] [[-app] ]

The appPools parameter name the application pools to capture stack traces for. If omitted, it captures stack traces for all running worker processes. The howMany parameter gives how many stack traces to capture, and the interval is the number of milliseconds between them (default 10000 ms, that is, 10 seconds). Set the filePath parameter if you want the output files to be written to another directory (than the current). Lastly, the app parameter tells the script which stackdump.exe to use (defaults to the one in the current working directory, choose the right x86/x64 one depending on your target process(es)).

Leave a Reply

Your email address will not be published. Required fields are marked *