相关问题
- Is shmid returned by shmget() unique across proces
- how to get running process information in java?
- Error building gcc 4.8.3 from source: libstdc++.so
- Why should we check WIFEXITED after wait in order
- Null-terminated string, opening file for reading
用性能收集工具。如果是云服务器,云厂商本身就有。
如果是刀片机,管理控制台也有
如果是一台物理主机,可以使用zabbix之类的收集,如果要简单,自己写个定时任务收集一下写入文件中好了。
ps -aux
查看进程,查看进程历史ps -ef
zabbix监控吧
没有历史记录,想要cpu历史记录,只能自己通过脚本记录或者按照监控软件,Prometheus就不错,安装很简单。# linux 下 取进程占用 cpu 最高的前10个进程
ps aux|head -1;ps aux|grep -v PID|sort -rn -k +3|head
运行top命令后,键入大写P