uWSGI log parser to find memory hogs
Do you want to find out which path of your application run under uWSGI is leaking memory? you can use pyuwsgimemhog to find it out. pyuwsgimemhog parses uWSGI logs to point out which paths contributes to uWSGI processes RSS memory increase.
pip install pyuwsgimemhog
In order to have the needed information you have to run uWSGI with the memory-report enabled.
You need to pass a single uWSGI log file to pyuwsgimemhog:
pyuwsgimemhog --logfile /path/to/log /api 975 /another-api 502
That means that /api contributed to increase the memory usage by 975 MB and /another-api by 502 MB.
- First release on PyPI.