Warning message

This translation is outdated. For the most up-to-date information, please refer to the English version.

出现 "fork failed: Resource temporarily unavailable" 报错的原因

Solution In Progress - Updated -

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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In