Linux

如何在 Windows 中獲得平均負載

  • July 23, 2018

在 linux 中,通過“uptime”命令可以得到最近 15 分鐘的平均負載。但是如何在Windows中獲得它?

許多人建議在這裡找到替代方案。但它是關於 CPU 使用率的,其中 linux 給出的平均負載提示有多少程序在等待 CPU 時間。我看到這個問題經常被問到,但他們的日期很老,而且他們也沒有提供完美的答案。

我還需要從命令行而不是從 GUI 獲取這些。

基於 Windows 的伺服器本身不支持“平均負載”。檢查這個執行緒 - https://social.technet.microsoft.com/Forums/lync/en-US/e5fd5657-726a-4cf0-8d6f-d760bf26ec77/windows-equivalent-to-to-linux-load-average-15-分鐘?論壇=winserverpowershell

在系統中使用 PowerShellGet-Counter或 WMI 。Processor Queue Length``Win32_PerfFormattedData_PerfOS_System

引用自:https://serverfault.com/questions/922657