Skip to content

Fix not working garbage collection#811

Open
Drophoff wants to merge 1 commit intoprometheus:mainfrom
Drophoff:main
Open

Fix not working garbage collection#811
Drophoff wants to merge 1 commit intoprometheus:mainfrom
Drophoff:main

Conversation

@Drophoff
Copy link

Contains the changes as discussed on the issue

  • Add terminate to DefaultExports
  • Add internal state to MemoryAllocationExports, that returns empty metrics list if no emitter is available

@fstab: First draft that is ready for review and that should close #809.

Signed-off-by: Drophoff <Drophoff@users.noreply.github.com>
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

This PR has been marked as stale due to 120 days of inactivity. It will be automatically closed if there is no further activity over the next 30 days.

@github-actions github-actions bot added the stale label Mar 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MemoryAllocationExports Not Collected By Garbage Collector And Causing Metaspace OutOfMemoryException

1 participant