要报告Windows交换的WMI

2024-06-16 11:04:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我们正在使用timgolden的wmipythonhooks来报告Windows系统状态的状态,以尝试向我们的Linux服务器获取类似的报告。在

我们目前正在从“Win32操作系统”类调用中提取“FreePhysicalMemory”和“TotalVisibleMorySize”。在

我们的问题是内存通常是100%的容量。在

有没有一种合理的方法,使用WMI/WMQ来确定Windows服务器是否正在交换?在


Tags: 方法内存服务器linuxwindows状态系统报告
1条回答
网友
1楼 · 发布于 2024-06-16 11:04:58

在浏览了各种内存类之后,以下内容至少可以提供交换的指示:

SELECT PagesPersec FROM Win32_PerfFormattedData_PerfOS_Memory

根据wmifun.net,PagesPersec是

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

我们暂时会这么做。在

相关问题 更多 >