Skip to content

fix: preserve OOM monitoring across allocation profile collections - #436

Merged
szegedi merged 2 commits into
mainfrom
ishabi/fix-allocation-oom-monitoring
Nov 11, 2026
Merged

szegedi merged 2 commits into
mainfrom
ishabi/fix-allocation-oom-monitoring

Conversation

@IlyasShabi

@IlyasShabi IlyasShabi commented Nov 9, 2026 •

Copy link
Copy Markdown

Motivation:

In allocation mode, collecting a profile stops and restarts the heap sampler to free V8’s sample buffer. Stopping also disables OOM monitoring, which is not restored afterward. As a result, near-OOM profiles are no longer captured after the first collection.

What does this PR do?:

Restarts V8’s heap sampler after collection without disabling OOM monitoring or resetting its counters.

Adds a regression test to verify that near-OOM profiles are captured after an allocation-profile collection.

PROF-16550

@IlyasShabi IlyasShabi added the semver-patch Bug or security fixes, mainly label Nov 9, 2026
@github-actions

Copy link
Copy Markdown

Overall package size

Self size: 2.67 MB
Deduped: 3.78 MB
No deduping: 3.78 MB

Dependency sizes | name | version | self size | total size | |------|---------|-----------|------------| | pprof-format | 2.4.0 | 912.36 kB | 912.36 kB | | source-map | 0.8.0 | 185.66 kB | 185.66 kB | | node-gyp-build | 4.8.4 | 13.86 kB | 13.86 kB |

🤖 This report was automatically generated by heaviest-objects-in-the-universe

@datadog-datadog-prod-us1-2

datadog-datadog-prod-us1-2 Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Pipelines

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: ac8858c | Docs | View more details | Give us feedback!

@IlyasShabi
IlyasShabi marked this pull request as ready for review November 10, 2026 14:43
@szegedi
szegedi merged commit ee9559c into main Nov 11, 2026
155 of 162 checks passed
@szegedi
szegedi deleted the ishabi/fix-allocation-oom-monitoring branch November 11, 2026 10:22
@szegedi szegedi mentioned this pull request Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

semver-patch Bug or security fixes, mainly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants