Skip to main content

uWSGI log parser to find memory hogs

Project description

pyuwsgimemhog

https://img.shields.io/pypi/v/pyuwsgimemhog.svg https://img.shields.io/travis/xrmx/pyuwsgimemhog.svg

Do you want to find out which path of your application running under uWSGI is leaking memory?

pyuwsgimemhog parses uWSGI logs to point out which paths contributes to uWSGI processes RSS memory increase.

Installation

pip install pyuwsgimemhog

Requirements

In order to have the needed information you have to run uWSGI with the memory-report enabled.

Please note that it’s possible to have meaningful results only if you are using one thread per process.

Usage

You need to pass a single uWSGI log file to pyuwsgimemhog:

pyuwsgimemhog --logfile /path/to/log
/api 975 200 4.9
/another-api 502 2 251

That means that /api contributed to increase the memory usage by 975 MB, it has been accounted 200 times and it contributed 4.9 MB per call. /another-api contributed 502 MB in two occurences so 251MB per call.

License

MIT license

Credits

This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.

History

0.1.0 (2019-04-12)

  • First release on PyPI.

Project details


Download files

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

Source Distribution

pyuwsgimemhog-0.2.0.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file pyuwsgimemhog-0.2.0.tar.gz.

File metadata

  • Download URL: pyuwsgimemhog-0.2.0.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/44.0.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.7.6

File hashes

Hashes for pyuwsgimemhog-0.2.0.tar.gz
Algorithm Hash digest
SHA256 1d014f399b8d2ba55d9cf1c9b394840ec55ed841937a439510115530130c89db
MD5 cf2a75a87677cf36c75ae8e4a8269b73
BLAKE2b-256 e23924adccd3b78b8ad6b96e8e885c2c7d3b9da123e322c5f8217f8a36f4872e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page