Tuning of the number of open processes for Linux users

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.