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: Remove memory leaks in scheduled_task #1080

Merged

Conversation

breed808
Copy link
Contributor

OLE objects must be manually cleared or released to prevent leaks. Note that these objects do not appear in the heap, so the pprof heap profiles aren't helpful in identifying OLE leaks.

Graph below shows exporter running with the scheduled_task collector enabled, with curl querying the metrics endpoint continuously. First part of graph is the exporter built from master, second part is the exporter built from this feature branch.

Resolves #1063

OLE objects must be manually cleared or released to prevent leaks.
Note that these objects do not appear in the heap, so the pprof heap
profiles aren't helpful in identifying OLE leaks.
Resident memory continues to increase if objects are not properly cleared.

Signed-off-by: Ben Reedy <breed808@breed808.com>
@breed808 breed808 merged commit 9a26257 into prometheus-community:master Oct 24, 2022
@breed808 breed808 deleted the scheduled_task_memory branch October 24, 2022 22:51
anubhavg-icpl pushed a commit to anubhavg-icpl/windows_exporter that referenced this pull request Sep 22, 2024
…task_memory

fix: Remove memory leaks in scheduled_task
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.

Windows_exporter v0.19.0 memory leak
1 participant