fork: retry: Resource temporarily unavailable

  • While I am connecting to my server I get,

    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: Resource temporarily unavailable
    

    And I try following commands also, then the result is same.

    -bash-4.1$ df -h
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: Resource temporarily unavailable
    -bash-4.1$ 
    -bash-4.1$ ls -lrth
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: Interrupted system call
    -bash-4.1$ 
    -bash-4.1$ ps -aef | grep `pwd`
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: retry: Resource temporarily unavailable
    -bash: fork: Resource temporarily unavailable
    -bash-4.1$ 
    

    Why this comming ? And how can I resolve it ?

    Looks like swap being overloaded (/tmp filesystem possibly full)

    ulimit -a, maybe you hit some process limit

  • VenkatC

    VenkatC Correct answer

    5 years ago

    This could be due to some resource limit, either on the server itself (or) specific to your user account. Limits in your shell could be checked via ulimit -a. Esp check for ulimit -u max user processes, if you have reached max processes, fork is unable to create any new and failing with that error. This could also be due to swap/memory resource issue

License under CC-BY-SA with attribution


Content dated before 6/26/2020 9:53 AM