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

时间:2025-02-12 15:15:30

问题描述

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

错误信息1:

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

错误信息2:

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

错误信息3:

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