Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dominant-strategies/pprof_ram_monitor
A simple script to monitor RAM usage and capture pprof of a running process when RAM usage spikes
https://github.com/dominant-strategies/pprof_ram_monitor
Last synced: 15 days ago
JSON representation
A simple script to monitor RAM usage and capture pprof of a running process when RAM usage spikes
- Host: GitHub
- URL: https://github.com/dominant-strategies/pprof_ram_monitor
- Owner: dominant-strategies
- Created: 2023-07-25T19:52:11.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-08-03T19:46:52.000Z (over 1 year ago)
- Last Synced: 2024-11-11T00:22:06.682Z (2 months ago)
- Language: Python
- Size: 7.81 KB
- Stars: 0
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# RAM Monitor with pprof capture
This script monitors RAM usage and captures a pprof sample from a specified
pprof server.## Getting started
Clone this repository
```
git clone https://github.com/dominant-strategies/pprof_ram_monitor.git
```Run some software which hosts a pprof server.
## Usage
Run `./monitor_ram.py --help` for usage instructions.
```
./monitor_ram.py --help
usage: monitor_ram.py [-h] [--ewma_alpha EWMA_ALPHA] [--interval INTERVAL] pprof_hostRAM monitor with pprof capture
positional arguments:
pprof_host IP address & port for the pprof hostoptions:
-h, --help show this help message and exit
--ewma_alpha EWMA_ALPHA
Alpha factor for the EWMA filter (value between 0 and 1)
--interval INTERVAL Delay between RAM monitor checks
```