Amjad reported this error while trying to login to the server:
cannot set user id: Resource temporarily unavailable
In the past he had reported this error:
Fork: Retry: Resource Temporarily Unavailable
This is due to the fact that the user has run out of free stacks. In OEL 6.x , the stack setting is not done in /etc/security/limits.conf but in the file:
/etc/security/limits.d/90-nproc.conf
The default content in the file is:
cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
root soft nproc unlimited
As soon as this change was made, Amjad was able to login.
cannot set user id: Resource temporarily unavailable
In the past he had reported this error:
Fork: Retry: Resource Temporarily Unavailable
This is due to the fact that the user has run out of free stacks. In OEL 6.x , the stack setting is not done in /etc/security/limits.conf but in the file:
/etc/security/limits.d/90-nproc.conf
The default content in the file is:
cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
root soft nproc unlimited
I changed this to:
After
$ cat /etc/security/limits.d/90-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 16384
root soft nproc unlimited
$
2 comments:
I had this issue and it got fixed by just adding user specific nproc values in security.conf.
Its not recommended to edit default file.(/etc/security/limits.d/90-nproc.conf)
It is very much recommended as per support.oracle.com article "Setting nproc values on Oracle Linux 6 for RHCK kernel (Doc ID 2108775.1)"
Post a Comment