出现 "fork failed: Resource temporarily unavailable" 报错的原因
Issue
-
在
/var/log/secure
里出现如下报错:Nov 24 19:01:45 localhost sshd2[23985]: fatal: setresuid 20054: Resource temporarily unavailable Nov 24 19:06:04 localhost sshd2[28377]: Disconnecting: fork failed: Resource temporarily unavailable Nov 24 19:14:46 localhost sshd2[4484]: Disconnecting: fork failed: Resource temporarily unavailable
-
在 /var/log/messages 里出现如下报错:
Nov 24 19:08:51 localhost sshd[4243]: error: fork: Resource temporarily unavailable
-
其他进程也会出现类似的报错:
fork failed: Resource temporarily unavailable
:Nov 24 12:59:14 localhost multipathd: fork failed: Resource temporarily unavailable Nov 24 12:59:14 localhost multipathd: fork failed: Resource temporarily unavailable Nov 24 12:59:14 localhost multipathd: fork failed: Resource temporarily unavailable Nov 24 13:00:18 localhost udevd[2244]: udev_event_run: fork of child failed: Resource temporarily unavailable Nov 24 13:00:18 localhost udevd[2244]: udev_event_run: fork of child failed: Resource temporarily unavailable
Environment
- Red Hat Enterprise Linux (RHEL) 6
- Red Hat Enterprise Linux (RHEL) 5
- Red Hat Enterprise Linux (RHEL) 4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.