ProcDump for Linux v3.2 releases: Linux version of the ProcDump Sysinternals tool
ProcDump is a Linux reimagining of the classic ProcDump tool from the Sysinternals Suite of tools for Windows. ProcDump provides a convenient way for Linux developers to create core dumps of their applications based on performance triggers.
Changelog v3.2
Installation
Requirements
- Minimum OS:
- Red Hat Enterprise Linux / CentOS 7
- Fedora 26
- Ubuntu 14.04 LTS
- gdb >= 7.6.1
- zlib (build-time only)
Install ProcDump
git clone https://github.com/microsoft/ProcDump-for-Linux.git
cd ProcDump-for-Linux
make
make install
Usage
Examples
The following examples all target a process with pid == 1234
The following will create a core dump immediately.
sudo procdump -p 1234
The following will create 3 core dumps 10 seconds apart.
sudo procdump -n 3 -p 1234
The following will create 3 core dumps 5 seconds apart.
sudo procdump -n 3 -s 5 -p 1234
The following will create a core dump each time the process has CPU usage >= 65%, up to 3 times, with at least 10 seconds between each dump.
sudo procdump -C 65 -n 3 -p 1234
The following will create a core dump each time the process has CPU usage >= 65%, up to 3 times, with at least 5 seconds between each dump.
sudo procdump -C 65 -n 3 -s 5 -p 1234
The following will create a core dump when CPU usage is outside the range [10,65].
sudo procdump -c 10 -C 65 -p 1234
The following will create a core dump when CPU usage is >= 65% or memory usage is >= 100 MB.
sudo procdump -C 65 -M 100 -p 1234All options can also be used with -w instead of -p. -w will wait for a process with the given name.
The following waits for a process named my_application
and creates a core dump immediately when it is found.
sudo procdump -w my_application
Source: https://github.com/Microsoft/