弹性云服务器 ECS-fork失败,无法创建新的线程怎么办?:问题描述

时间:2025-01-10 08:39:51

问题描述

Linux操作系统的E CS ,在执行命令或者日志打印时,出现如下报错信息:

错误信息1:

root@localhost:~# free -g
            total       used       free     shared     buffers   cached 
Mem:         94          43         51        0           0        0
Swap:        19          0         19
root@localhost:~# uname -a
-bash: fork: Cannot allocate memory

错误信息2:

xxxxsshd2[23985]: fatal: setresuid 20054: Resource temporarily unavailable
xxxxsshd2[28377]: Disconnecting: fork failed: Resource temporarily unavailable
xxxxsshd2[4484]: Disconnecting: fork failed: Resource temporarily unavailable

错误信息3:

[root@ecs-xxxx ~]$ sudo docker info
runtime/cgo: pthread_create failed: Resource temporarily unavailable
SIGABRT: abort
support.huaweicloud.com/trouble-ecs/ecs_trouble_0373.html