lxn / win

A Windows API wrapper package for the Go Programming Language
Other
1.19k stars 312 forks source link

Windows Server 2016 WMI performance counters memory leak #105

Open romanblachman opened 4 years ago

romanblachman commented 4 years ago

We have noticed that due to WMI calls used for monitoring as part of telegraf engine, WMI calls to extract performance counters are causing leak in the process. When looking at telegraf project code, I noticed that it is using pdh from this project, and not issuing WMI calls for performance counters directly.

More issues can be found @ https://github.com/influxdata/telegraf/issues/6807

I didn't find direct calls to CoInitializeEx which tells me that PDH is someone calling that internally? Was this problem ever reported to you?