Process opens with a file handle that exceeds the system default of 1024, it will prompt "Too many files open" information

Source: Internet
Author: User

In a Linux system, if a process opens a file handle that exceeds the system default of 1024, the "Too many files open" message is prompted, so you want to adjust the open file handle limit.


There are two ways to do this:


  1. Modify the etc/security/limits.conf configuration file and permanently take effect after reboot

    At the end of the file, add the following two paragraphs:

    * Soft Nofile 65535

    * Hard Nofile 65535

  2. Enter the command in the console immediately, but it will become the default value after reboot 1024

Ulimit-shn 65535


It is recommended to use the first method for permanent entry.

This article is from the "light meal state-Octopus" blog, please make sure to keep this source http://daiyiyi.blog.51cto.com/2358701/1752645

Process opens with a file handle that exceeds the system default of 1024, it will prompt "Too many files open" information

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.