Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak when metrics endpoint is enabled, but not scraped #12283

Open
1 task done
mikroskeem opened this issue Nov 2, 2024 · 0 comments
Open
1 task done

Memory leak when metrics endpoint is enabled, but not scraped #12283

mikroskeem opened this issue Nov 2, 2024 · 0 comments
Labels
C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled

Comments

@mikroskeem
Copy link

Describe the bug

When metrics endpoint is enabled with e.g. --metrics=127.0.0.1:2112 flag, memory usage keeps growing if endpoint is not being actively scraped.

Steps to reproduce

  1. Start node with --metrics flag, e.g. --metrics=127.0.0.1:2112
  2. Leave it running for a few days
  3. See Reth memory usage grow significantly (up to ~20GiB RSS in 3-4 days)
  4. Scrape endpoint (e.g. via curl, or start Prometheus) and see endpoint taking long time to generate a response
  5. See Reth memory usage drop

Node logs

N/A

Platform(s)

Linux (x86)

What version/commit are you on?

reth Version: 1.1.0
Commit SHA: 1ba631b
Build Timestamp: 2024-10-10T18:21:22.096485546Z
Build Features: asm_keccak,jemalloc
Build Profile: maxperf

What database version are you on?

Current database version: 2
Local database version: 2

Which chain / network are you on?

mainnet

What type of node are you running?

Full via --full flag

What prune config do you use, if any?

No response

If you've built Reth from source, provide the full command you used

No response

Code of Conduct

  • I agree to follow the Code of Conduct
@mikroskeem mikroskeem added C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled labels Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug An unexpected or incorrect behavior S-needs-triage This issue needs to be labelled
Projects
Status: Todo
Development

No branches or pull requests

1 participant