- Posts: 200
- Thank you received: 0
个人事务
atop
- btt
- [btt]
-
Topic Author
- Offline
- Administrator
-
Less
More
20 Jun 2025 00:41 - 20 Jun 2025 00:43 #258
by btt
Replied by btt on topic atop
编辑:
LOGOPTS=""
LOGINTERVAL=30
LOGGENERATIONS=10
LOGPATH=/var/log/atop
Code:
vim /etc/default/atop
按i进入编辑模式。
根据自身需求调整监控周期、日志保留时间及日志存储路径配置。示例中将监控周期修改为30秒,日志保留时间设定为10天,而日志路径则维持默认设置。
LOGINTERVAL=30
LOGGENERATIONS=10
LOGPATH=/var/log/atop
Last edit: 20 Jun 2025 00:43 by btt.
Please Log in or Create an account to join the conversation.
- btt
- [btt]
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 200
- Thank you received: 0
20 Jun 2025 00:38 #257
by btt
Replied by btt on topic atop
历史时间占用服务器cpu、内存、磁盘IO高的进程是无法直接查询到的,后台也是没有相关记录的。需要在服务器系统内安装atop服务并设置开机自启,后续观察看看, 如果在出现类似问题的话,可以将/var/log/atop 中的日志提供下,以确认看下占用资源高的进程是什么。
atop -r /var/log/atop/XXXX.log
安装、配置并使用atop监控工具
https://help.aliyun.com/zh/ecs/how-to-use-the-linux-system-atop-monitoring-tools?spm=a2c4g.11174283.0.i3
atop -r /var/log/atop/XXXX.log
安装、配置并使用atop监控工具
https://help.aliyun.com/zh/ecs/how-to-use-the-linux-system-atop-monitoring-tools?spm=a2c4g.11174283.0.i3
Please Log in or Create an account to join the conversation.
- btt
- [btt]
-
Topic Author
- Offline
- Administrator
-
Less
More
- Posts: 200
- Thank you received: 0
20 Jun 2025 00:36 #256
by btt
New Topic
Install on Ubuntu:
Code:
apt-get update
apt install -y atop
systemctl start atop
Please Log in or Create an account to join the conversation.