如何在 Windows 中获取平均负载

如何在 Windows 中获取平均负载

在 Linux 中,通过“uptime”命令可以获取过去 15 分钟的平均负载。但在 Windows 中如何获取呢?

许多人建议找到替代方案这里。但它是关于 CPU 利用率的,其中 Linux 给出的平均负载提示了有多少进程在等待 CPU 时间。我看到这个问题经常被问到,但它们的日期很旧,他们也没有提供完美的答案。

另外我需要从命令行而不是从 GUI 获取这些。

答案1

Windows 服务器本身不支持“平均负载”。请查看此主题 -https://social.technet.microsoft.com/Forums/lync/en-US/e5fd5657-726a-4cf0-8d6f-d760bf26ec77/windows-equivalent-to-to-linux-load-average-15-minutes?forum=winserverpowershell

在系统中使用 PowerShellGet-Counter或 WMI 。Processor Queue LengthWin32_PerfFormattedData_PerfOS_System

相关内容