Skip to content

Conversation

@squadgazzz
Copy link
Contributor

@squadgazzz squadgazzz commented Jul 3, 2024

This PR enables running any service with the heaptrack memory profiler. Initially, the plan was to install the necessary components for heaptrack only when the heaptrack argument is specified. However, the only method I've found involves incorporating the installation script in a bash script that executes every time the image restarts, which isn't good. As a result, the final image is a bit heavier now(1.93GB vs 1.22GB).

There is an option to attach the profiler to an already running process without changing the dockerfile, but this consumes more resources and makes it impossible to collect any results since the API latency increases drastically, which leads to frequent pod restarts. Incorporating the profiler into the image and running it from the beginning has less resource impact.

@squadgazzz squadgazzz marked this pull request as ready for review July 3, 2024 17:04
@squadgazzz squadgazzz requested a review from a team as a code owner July 3, 2024 17:04
@squadgazzz squadgazzz requested review from mateo-mro and sunce86 July 12, 2024 07:41
@squadgazzz squadgazzz enabled auto-merge (squash) July 16, 2024 14:18
@squadgazzz squadgazzz merged commit 7814baf into main Jul 16, 2024
@squadgazzz squadgazzz deleted the heaptrack-profiler branch July 16, 2024 14:26
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants