Skip to main content

Tools for working with container types, command data operations, and concise exception handling

Project description

Monitor Memory

This package creates a command-line utility that will run a command
and also run a daemon monitoring memory use as the command runs. The
daemon uses the `ps` command to check memory use, so this will only
work on `UNIX`-like systems.

I've found this functionality to be particularly useful in batch
processing jobs that run in docker containers, because the output
of `ps aux` isolates only processes running in-container. So by
recording max memory use, you can track how large of containers you

pip install monitor_memory
monitor_memory <some command>

All arguments after the command are forwarded to the command, as is standard
input. So, for example, to run an arbitrary bash script you can use a
monitor_memory bash << \EOF_
echo ${NAME}

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for monitor-memory, version 0.0.2
Filename, size File type Python version Upload date Hashes
Filename, size monitor_memory-0.0.2.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page