Contents
The error means that the current shell resource is limited (check the limits by ulimit -a ). So you can either try in another shell, or increase the resources by using ulimit command which controls over the resources available to the shell and processes it creates on operating system.
There can be various reasons for processes not being able to fork: There is a misbehaving service or process running, consuming more resources than expected. The system was not able to create new processes, because of the limits set for nproc in /etc/security/limits.
What causes a fork to fail?
The fork fails because the system will not allow any more processes to be created.? The two main reasons fork fails is: Fork creates a copy of the parent, if the parent process is 40MB? the user would need a minimum of an additional 40 meg to fork the child process (in this case the parent is base).?
Can’t create a new thread errno 11 ); if you are not out of available memory?
OS error 11 is “Resource temporarily unavailable”. The most common cause of receiving this error when trying to create a new thread is having hit the process’s kernel enforced a limit on open file descriptors.
21 fork: Resource temporarily unavailable The error means that the current shell resource is limited (check the limits by ulimit -a). So you can either try in another shell, or increase the resources by using ulimitcommand which controls over the resources available to the shell and processes it creates on operating system.
Getting Error su: cannot set user id: Resource temporarily unavailable error while trying to su or to login as a local user. This error is also observed when logging in as a user on the console and using the SSH. Resolution. Check /etc/security/limits.conf and all files in /etc/security/limits.d/ for the current setting of the nproc value
Why do I get error fork resource temporarily unavailable?
Now if you try to check the running processes you will receive error, resource temporary unavailable, it means the resources got exhausted for this particular user i.e. number of processes got exceeded. And now you can’t even fork any other command and hence ps fails.