Too Many open files solution

Source: Internet
Author: User

Too Many open files solution

1. Modify the contents of the/etc/security/limits.conf file

Use the sudo vim/etc/security/limits.conf command to enter the/etc/security/limits.conf file.

Add the following two statements in the/etc/security/limits.conf file to save the exit.

* Soft Nofile 655360

  * Hard Nofile 655360

Where asterisks represent the global, soft is software, hard is hardware, nofile refers to the number of open files.

2. Modify the contents of the/etc/pam.d/login file

For the limits.conf file configuration to take effect, you must make sure that the pam_limits.so file is added to the startup file.

Make sure that the following statement is in the/etc/pam.d/login file.

  Session required/lib/security/pam_limits.so

3, after modifying the login can see the effect, can be viewed by Ulimit -N.

Too Many open files solution

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.