原创

centos系统服务器打开终端很慢, 并显示 abrt-cli status timedout

centos系统服务器打开终端很慢, 并显示 abrt-cli status timedout

表现

1、ssh连接经常失败。
2、登录的时候非常卡。
3、登录成功后,会出现一个提示“abrt-cli status timed out”
4、登录成功后输入命令行卡顿,慢动作。

原因

abrtd.service 服务导致。 这是一个可有可无的功能,管理多用户的。

解决方案

systemctl stop abrtd.service

理论上,命令 abrt-auto-reporting enabled 也可以解决此问题。自行尝试。

如果上述命令还是登录卡顿,则排查是否存在 .lock情况。找到对应进程, kill 掉即可。

[root]# systemctl status abrtd.service

● abrtd.service - ABRT Automated Bug Reporting Tool
   Loaded: loaded (/usr/lib/systemd/system/abrtd.service; enabled; vendor preset: enabled)
   Active: active (running) since 二 2020-10-20 19:03:11 CST; 12s ago
 Main PID: 21498 (abrtd)
   Memory: 1.7M
   CGroup: /system.slice/abrtd.service
           └─21498 /usr/sbin/abrtd -d -s

10月 20 19:03:18 -abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:18 - abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:19 - abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:19 -abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:20 -abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:20 - abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:21 - abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:21 -abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:22 -abrtd[21498]: Lock file '.lock' is locked by process 28834
10月 20 19:03:22 -abrtd[21498]: Lock file '.lock' is locked by process 28834

[root]# kill -9 28834

正文到此结束
广告是为了更好的提供数据服务
本文目录