Repository navigation
Close tracers built by debugger tests (quick fix) - #13040
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits into
Conversation
Debugger tests built CoreTracers with the default agent writer and never closed them. Each one kept a serializer thread alive, pinning that writer's 5 MB payload buffer, so the test JVM accumulated them until agent-debugger:test ran out of its 512 MB heap. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Debugger benchmarksParameters
See matching parameters
SummaryFound 5 performance improvements and 0 performance regressions! Performance is the same for 4 metrics, 6 unstable metrics.
See unchanged results
Request duration reports for reportsgantt
title reports - request duration [CI 0.99] : candidate=None, baseline=None
dateFormat X
axisFormat %s
section baseline
noprobe (592.434 µs) : -15, 1200
. : milestone, 592,
basic (345.18 µs) : 341, 350
. : milestone, 345,
loop (9.836 ms) : 9621, 10050
. : milestone, 9836,
section candidate
noprobe (368.649 µs) : 336, 402
. : milestone, 369,
basic (349.447 µs) : 344, 355
. : milestone, 349,
loop (8.119 ms) : 8055, 8183
. : milestone, 8119,
|
🟢 Java Benchmark SLOs — All performance SLOs passed
PR vs. master results
Commit: Load and DaCapo benchmarks can be triggered manually in the GitLab pipeline. Results will appear in the Benchmarking Platform UI after completion. |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
More details
Tracer ownership and teardown match the affected test lifecycles, including tests that create multiple tracers. The static review identified no actionable defects.
🤖 Bits Code Review · Commit 30b230b
|
/merge |
|
View all feedbacks in Devflow UI.
It will be processed automatically as soon as GitHub reports it as mergeable. View in MergeQueue UI.
The expected merge time in
|
17ad667
into
master
What Does This Do
Debugger tests now close the
CoreTracers they build.Motivation
:dd-java-agent:agent-debugger:testruns out of its 512 MB heap on master.PayloadDispatcherImplinstances retained 225 MB, 65% of the heap, about 5.2 MB each.TraceProcessingWorkerserializer threads.CoreTracer.builder().build(), which uses the default agent writer, and never close the tracer. The writer's thread stays alive and pins its msgpack buffer, created on the first trace written.ExceptionProbeInstrumentationTestbuilds one per test in@BeforeEach, and Add coordinated sampling for snapshot probes #12452 addedCoordinatedSamplingTestwith nine more call sites.The fix:
CapturingTestBasesubclasses, that's a shared field, closed inCapturingTestBase.after().LogProbeTestbuilds several per test, so it closes them in a list@AfterEach.The test task now completes: 950 tests, 15 skipped, no failures, no OOM.
Since then, #13096 replaced the writer's single 5 MiB array with chunked buffers, so a leaked writer now pins much less memory and the OOM may not reproduce on master. The leak itself remains (each unclosed tracer keeps its writer thread running across tests), so this is still worth having as test hygiene. Re-checked after syncing with master: 963 tests, 16 skipped, no failures.
Additional Notes
Test-only change.
🤖 Generated with Claude Code