We got this error when we tried to SSH into a server. Upon checking the server, which was a VPS, we could see no memory issues, or any resources hitting limits.
The error was fixed when we disabled Shell Fork Bomb Protection. According to cPanel,
Fork Bomb Protection will prevent users with terminal access (ssh/telnet) from using up all the resources on the server. Unchecked resource allocation can potentially lead to a server crash. |
It is recommended that this protection be enabled for servers providing terminal access. |
In case of this server, no users were having shell access, so we kept it disabled.