ProcDump

ProcDump is a command-line application used for monitoring an application for CPU spikes and creating crash dumps during a spike.[2][3] The crash dumps can then be used by an administrator or software developer to determine the cause of the spike. ProcDump supports monitoring of hung windows and unhandled exceptions. It can also create dumps based on the values of system performance counters.

ProcDump
ProcDump v9.0
Original author(s)Winternals Software
Developer(s)Microsoft
Stable release
v9.0 (Windows version)
v1.1.1 (Linux version)[1] / May 16, 2017 (2017-05-16) (Windows version)
April 3, 2020 (2020-04-03) (Linux version)
Repositorygithub.com/microsoft/ProcDump-for-Linux
Written inC
Operating systemMicrosoft Windows, Linux
Available inEnglish
LicenseWindows: Proprietary commercial software
Linux: MIT License
Websitedocs.microsoft.com/en-us/sysinternals/downloads/procdump

Overview

Initially, ProcDump was only available for Microsoft Windows. In November 2018, Microsoft confirmed it is porting Sysinternals tools, including ProcDump and ProcMon, to Linux.[4] The software is open source. It is licensed under MIT License and the source code is available on GitHub.[5]

The Linux version requires Linux kernels version 3.5+ and runs on Red Hat Enterprise Linux / CentOS 7, Fedora 26, Mageia 6, Ubuntu 14.04 LTS. It currently does not have full feature parity with the Windows version (e.g. custom performance counters).

Example

Create 5 core dumps 10 seconds apart of the target process with process identifier (pid) == 1234

$ sudo procdump -n 5 -p 1234
gollark: I guess try and fly that way and see if it actually moves that far?
gollark: I don't think it can. They don't have orientation anyway IIRC.
gollark: Well, yes, it would be stupidly annoying to do and probably not worth it, but *cool*.
gollark: Is that a "well okay but that sounds pointless" eh or a "what?" eh?
gollark: Well, if `debug` provides some information - start/end lines and file, I think - you can do it even *more* hackily and try to load load the relevant lines of the relevant file. Or you can patch `load` to do that somehow.

See also

References

This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.