cannot fork [Resource temporarily unavailable]

Tried to login to a Linux server but gave the error cannot fork [Resource temporarily unavailable]

ssh oracle@linux
/etc/profile[62]: .[5]: .: line 46: cannot fork [Resource temporarily unavailable]

Saw how many processes oracle user has

root@linux:~ # ps -ef | grep oracle | wc -l
2038

Then increased the number of processes

root@linux:~ # vi /etc/security/limits.conf
#oracle soft nproc 2048
oracle soft nproc 4096

Advertisement