Skip to content

fix(op-reth): drain Prometheus metric buckets in op-proofs CLI#21596

Merged
einar-oplabs merged 2 commits into
developfrom
fix/op-proofs-metrics-bucket-leak
Jul 6, 2026
Merged

fix(op-reth): drain Prometheus metric buckets in op-proofs CLI#21596
einar-oplabs merged 2 commits into
developfrom
fix/op-proofs-metrics-bucket-leak

Conversation

@dhyaniarun1993

Copy link
Copy Markdown
Contributor

Description

During a 1.2 M-block backfill the process RSS grew unboundedly. AtomicBucket is the in-memory buffer behind every Prometheus histogram emitted by the trie code; it grows on every observation and is only drained by PrometheusHandle::run_upkeep(). paradigmxyz/reth#12283 tracked the same symptom in the node binary and was closed by paradigmxyz/reth#12664, which introduced spawn_upkeep() and called it from start_prometheus_endpoint. op-proofs never reaches that path, so the fix in reth didn't take effect for it.

Tests

  • Testing on mainnet

Additional context

NA

Metadata

Closes #21569

@dhyaniarun1993 dhyaniarun1993 self-assigned this Jun 29, 2026
@dhyaniarun1993 dhyaniarun1993 requested a review from a team as a code owner June 29, 2026 11:44
@einar-oplabs einar-oplabs self-assigned this Jul 6, 2026
@einar-oplabs einar-oplabs added this pull request to the merge queue Jul 6, 2026
Merged via the queue into develop with commit 89e14a6 Jul 6, 2026
128 checks passed
@einar-oplabs einar-oplabs deleted the fix/op-proofs-metrics-bucket-leak branch July 6, 2026 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug(op-reth): memory leak during op proof backfill using cli

3 participants