windows_exporter: High memory usage on .16.0
Hello!
I have a couple of servers reporting high memory usage by the windows_exporter. I am using the default configuration/collectors. Is there anyway to limit the resource usage on the exporter?
Exporter version:
windows_exporter, version 0.16.0 (branch: master, revision: f316d81d50738eb0410b0748c5dcdc6874afe95a) build user: appveyor-vm\appveyor@appveyor-vm build date: 20210225-10:52:19 go version: go1.15.6 platform: windows/amd64
OS Name: Microsoft Windows Server 2016 Standard OS Version: 10.0.14393 N/A Build 14393
Handles NPM(K) PM(K) WS(K) CPU(s) Id SI ProcessName
1260 142 12748860 12496424 110,102.69 11388 0 windows_exporter
About this issue
- Original URL
- State: open
- Created 3 years ago
- Reactions: 3
- Comments: 53 (13 by maintainers)
Commits related to this issue
- call RegCloseKey this should save a leak in windows_exporter: https://docs.microsoft.com/en-us/windows/win32/perfctrs/using-the-registry-functions-to-consume-counter-data > Be sure to use the RegCl... — committed to datamuc/perflib_exporter by datamuc 3 years ago
- call RegCloseKey (#34) this should save a leak in windows_exporter: https://docs.microsoft.com/en-us/windows/win32/perfctrs/using-the-registry-functions-to-consume-counter-data > Be sure to use... — committed to leoluk/perflib_exporter by datamuc 3 years ago
scheduled_task
memory leak has been addressed in #1080. I’ll try to investigate theservice
collector when there’s time.@breed808 Made a few tests and the most stable config was disabling
scheduler_task
collector completely. Its been 1 day since its running ok, will report back in case it changes. We only monitor 2 scheduled tasks so not sure why such aggressive leak is happening.@datamuc Thanks for all the work that your are putting in on this.
We removed the process and service collector from our configuration (and added the tcp collector, so it is: [defaults] - service + tcp) now the memory usage is stable. It seems that every collector that makes use of github.com/StackExchange/wmi leaks.