bloomberg / memray

Memray is a memory profiler for Python
https://bloomberg.github.io/memray/
Apache License 2.0
13.36k stars 397 forks source link

document how to handle container OOM #605

Closed micheleAlberto closed 5 months ago

micheleAlberto commented 5 months ago

Issue number of the reported bug or feature request: #598

Describe your changes This adds some documentation about how to run memray in containers that get out of memory

Testing performed I tested the scripted solution locally (but not in a container)

this is how the docs render image

godlygeek commented 5 months ago

@micheleAlberto Would you mind updating your commit to include a Signed-off-by? See https://github.com/bloomberg/memray/blob/main/CONTRIBUTING.md#contribution-licensing - you should just be able to do a git commit --amend -s -C HEAD and then a git push --force-with-lease to add that.

codecov-commenter commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 92.74%. Comparing base (41248ed) to head (96228d5). Report is 55 commits behind head on main.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #605 +/- ## ========================================== + Coverage 92.55% 92.74% +0.19% ========================================== Files 91 92 +1 Lines 11304 11234 -70 Branches 1581 2055 +474 ========================================== - Hits 10462 10419 -43 + Misses 837 815 -22 + Partials 5 0 -5 ``` | [Flag](https://app.codecov.io/gh/bloomberg/memray/pull/605/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | Coverage Δ | | |---|---|---| | [cpp](https://app.codecov.io/gh/bloomberg/memray/pull/605/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | `92.74% <ø> (+6.80%)` | :arrow_up: | | [python_and_cython](https://app.codecov.io/gh/bloomberg/memray/pull/605/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg) | `92.74% <ø> (-2.98%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=bloomberg#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.