Tuning of the number of open processes for Linux users
Reference article:
about the Nproc limitation of Ulimit in RHEL6 (http://www.cnblogs.com/kumulinux/archive/2012/12/16/2820609.html)
!! The content of this article is only tested on RHEL6.4. This article is for all users only
1 View nproc (max user processes) command
[Email protected] ~]# ulimit-u14866
2 modifying Nproc
Temporary modification, re-login or restart after failure:
[Email protected] ~]# ulimit-u 32768[Email protected] ~]# Ulimit-u
32768
Try adding the following configuration to the /etc/security/limits.conf :
* Soft nproc 32768
After exiting the current user, re-login or reboot, the view discovery configuration still fails.
Continue to try adding the configuration in /etc/security/limits.d/90-nproc.conf :
* Soft nproc 65536
After exiting the current user, re-login or reboot, the view discovery configuration still fails.
Continue to try adding the configuration in /etc/security/limits.d/90-nproc.conf :
* Soft Nproc 65536* hard Nproc 65536
After you log on or restart, review the discovery configuration to take effect. Hard Nproc can be seen to work.
3 Conclusion
Temporary modification (the shell is unrestricted, XXX can be any number, indicating that this modification is meaningless):
# ulimit-u XXX
Permanent modification, insurance practices are simultaneously modified
/etc/security/limits.d/90-nproc.confAnd
/etc/security/limits.confAs follows:
limits_conf =/etc/security/limits.conf:
* Soft nproc s1* hard nproc H1
nproc_conf =/etc/security/limits.d/90-nproc.conf:
* Soft nproc s2* hard nproc H2
The S1,H1,S2,H2 must be of a specific meaningful number. At this point ulimit-u displays a value of =min (H1,H2)
Therefore, it is common to set S1=S2=H1=H2, for example in limits_conf and nproc_conf :
* Soft nproc 16384* hard nproc 16384
Tuning of the number of open processes for Linux users