Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试诊断我认为与 CPU 使用率有关的服务器问题。
但是,当我登录到该框并运行“顶部”时,我看到 %CPU 为 160 或更高。这是因为这是一个多处理器盒子。
如何查看各个处理器的 CPU 使用率?
我怎样才能实时做到这一点?
谢谢!
运行“顶部”
按 1
我们在这里谈论的是什么 UNIX?
mpstat如果您使用的是 Solaris 或 Linux,请尝试。
mpstat
mpstat -P 全部 5
它将每 5 秒报告一次单独的 cpu 使用情况