安装sysstat包。在Ubuntu下,执行如下操作
sudo apt install sysstat
The sysstat package contains the following system performance tools:
- sar: collects and reports system activity information;
- iostat: reports CPU utilization and disk I/O statistics;
- tapestat: reports statistics for tapes connected to the system;
- mpstat: reports global and per-processor statistics;
- pidstat: reports statistics for Linux tasks (processes);
- sadf: displays data collected by sar in various formats;
- cifsiostat: reports I/O statistics for CIFS filesystems.
譬如用pidstat查看系统进程情况。
pidstat -u 5 20

这篇博客详细介绍了如何在Ubuntu系统中安装sysstat包,并列举了其包含的系统性能监控工具如sar, iostat等,重点展示了如何通过pidstat查看进程状态。
2014

被折叠的 条评论
为什么被折叠?



