开发者

WMI to report Windows swapping

开发者 https://www.devze.com 2023-03-13 12:34 出处:网络
We are using Tim Golden\'s WMI Python hook开发者_运维问答s to report on the status of Windows system state to try and get similar reports to our Linux servers.

We are using Tim Golden's WMI Python hook开发者_运维问答s to report on the status of Windows system state to try and get similar reports to our Linux servers.

We are presently extracting the 'FreePhysicalMemory' and 'TotalVisibleMemorySize' from a 'Win32_OperatingSystem' class call.

Our problem is that memory is often reported at 100% capacity.

Is there a sensible way, using WMI/WMQ, to determine if a Windows server is swapping?


After going through the various memory classes, it appears that the following will provide at least an indication of swapping:

SELECT PagesPersec FROM Win32_PerfFormattedData_PerfOS_Memory

According to wmifun.net, PagesPersec is

Pages/sec is the rate at which pages are read from or written to disk to resolve hard page faults. This counter is a primary indicator of the kinds of faults that cause system-wide delays

We're going to go for that for the time being.

0

精彩评论

暂无评论...
验证码 换一张
取 消