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

fix: oom in bundlepool #67

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open

fix: oom in bundlepool #67

wants to merge 3 commits into from

Conversation

irrun
Copy link
Collaborator

@irrun irrun commented Jan 23, 2025

Description

According to pprof on heap as below pictures from left to right, there are a lot of new memory assigned when sendBundle, The program keeps holding this memory without freeing it.

Further analysis of the code, every time a new block comes out, only p.bundles has been cleared, not bundleheap, bundleheap would keep large amount of depracated bundles. So we also cleanup the bundlehea at this time.

截屏2025-01-23 14 31 44 截屏2025-01-23 14 31 49

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

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.

1 participant