Procdump - A Linux Version Of The Procdump Sysinternals Tool

Procdump - A Linux Version Of The Procdump Sysinternals Tool - Hi friends mederc, In the article that you read this time with the title Procdump - A Linux Version Of The Procdump Sysinternals Tool, We have prepared this article well for you to read and retrieve information from it. hopefully fill the posts Article Debugging Tool, Article Linux, Article ProcDump, Article ProcDump for Linux, Article Sysinternals, Article Windows, we write this you can understand. Alright, happy reading.

Title : Procdump - A Linux Version Of The Procdump Sysinternals Tool
link : Procdump - A Linux Version Of The Procdump Sysinternals Tool

ALSO READ


Procdump - A 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 agency for Linux developers to practise pith dumps of their application based on functioning triggers.

Installation & Usage

Requirements
  • Minimum OS:
    • Red Hat Enterprise Linux / CentOS 7
    • Fedora 26
    • Mageia 6
    • Ubuntu 14.04 LTS
    • We are actively testing against other Linux distributions. If you lot bring requests for specific distros, delight allow us know (or practise a describe asking amongst the necessary changes).
  • gdb >= 7.6.1
  • zlib (build-time only)

Install ProcDump

Via Package Manager [prefered method]

1. Add the Microsoft Product feed
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg

Register the Microsoft Product feed

Ubuntu 16.04
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod xenial main" > /etc/apt/sources.list.d/microsoft.list'

Ubuntu 14.04
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod trusty main" > /etc/apt/sources.list.d/microsoft.list'

2. Install Procdump
sudo apt-get update sudo apt-get install procdump

Via .deb Package
Pre-Depends: dpkg(>=1.17.5)

1. Download .deb Package

Ubuntu 16.04
wget https://packages.microsoft.com/repos/microsoft-ubuntu-xenial-prod/pool/main/p/procdump/procdump_1.0.1_amd64.deb

Ubuntu 14.04
wget https://packages.microsoft.com/repos/microsoft-ubuntu-trusty-prod/pool/main/p/procdump/procdump_1.0.1_amd64.deb

2. Install Procdump
sudo dpkg -i procdump_1.0.1_amd64.deb sudo apt-get -f install

Uninstall

Ubuntu 14.04+
sudo apt-get purge procdump

Usage
Usage: procdump [OPTIONS...] TARGET    OPTIONS       -C          CPU threshold at which to practise a dump of the procedure from 0 to 100 * nCPU       -c          CPU threshold below which to practise a dump of the procedure from 0 to 100 * nCPU       -M          Memory commit threshold inward MB at which to practise a dump       -m          Trigger when retentivity commit drops below specified MB value.       -n          Number of dumps to write earlier exiting       -s          Consecutive seconds earlier dump is written (default is 10)    TARGET must endure just i of these:       -p          pid of the procedure       -w          Name of the procedure executable

Examples
The next examples all target a procedure amongst pid == 1234
The next volition practise a pith dump immediately.
sudo procdump -p 1234
The next volition practise iii pith dumps 10 seconds apart.
sudo procdump -n iii -p 1234
The next volition practise iii pith dumps v seconds apart.
sudo procdump -n iii -s v -p 1234
The next volition practise a pith dump each fourth dimension the procedure has CPU usage >= 65%, upward to iii times, amongst at to the lowest degree 10 seconds betwixt each dump.
sudo procdump -C 65 -n iii -p 1234
The next volition practise a pith dump each fourth dimension the procedure has CPU usage >= 65%, upward to iii times, amongst at to the lowest degree v seconds betwixt each dump.
sudo procdump -C 65 -n iii -s v -p 1234
The next volition practise a pith dump when CPU usage is exterior the make [10,65].
sudo procdump -c 10 -C 65 -p 1234
The next volition practise a pith dump when CPU usage is >= 65% or retentivity usage is >= 100 MB.
sudo procdump -C 65 -M 100 -p 1234
All options tin flame also endure used amongst -w instead of -p. -w volition aspect for a procedure amongst the given name.
The next waits for a procedure named my_application in addition to creates a pith dump straightaway when it is found.
sudo procdump -w my_application

Current Limitations
  • Currently volition exclusively run on Linux Kernels version 3.5+
  • Does non bring sum characteristic parity amongst Windows version of ProcDump, specifically, remain endure functionality, in addition to custom functioning counters




Thus the article Procdump - A Linux Version Of The Procdump Sysinternals Tool

That's all the article Procdump - A Linux Version Of The Procdump Sysinternals Tool this time, hopefully can benefit you all. okay, see you in another article posting.

You are now reading the article Procdump - A Linux Version Of The Procdump Sysinternals Tool with the link address https://mederc.blogspot.com/2019/09/procdump-linux-version-of-procdump.html

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel