error - -bash: fork: Resource temporarily unavailable
link - https://access.redhat.com/solutions/22105
//You can run the below command to find the number of
processes opened for every user and compare if that limit is exceeded with what
defined in /etc/security/limits.conf or /etc/security/limits.d/*.
[root@server boobi]# ps --no-headers auxwwwm | cut -f1 -d'
' | sort | uniq -c | sort -n
2 dbus
2 rpc
4 postfix
4 boobi
8 polkitd
14 apache
299 root
3638 mqmapp
---
[root@server boobi]#
ps auxwwwm | grep mqmapp | wc -l
3655
---------
[root@server boobi]# cat
/etc/security/limits.d/20-nproc.conf |
grep -v '#'
* soft nproc
4096
root soft nproc
unlimited
--
[root@server boobi]# cat /etc/security/limits.conf | grep
-v '#'
mqmapp hard nofile
10240
mqmapp soft nofile
10240
mqmapp hard nproc
4096
mqmapp soft nproc
4096
----
//Add or edit the following line in the /etc/pam.d/login
file, if it does not already exist:
session
required pam_limits.so
----
//Add the following lines to /etc/profile:
if [ $USER = "oracle" ]; then
if [ $SHELL =
"/bin/ksh" ]; then
ulimit -p 16384
ulimit -n
65536
else
ulimit -u
16384 -n 65536
fi
fi
---
0 Comments