Number of Linux open files too many open file solution

Source: Internet
Author: User

The reason for this is that the program opened the file/socket the number of connections exceeds the system set value.
View the maximum number of open files per user
Ulimit-a
where open files (-N) 1024 indicates that the maximum number of files allowed per user is 1024


Maximum number of current system file handles, only for viewing, Cannot set modification
Cat/proc/sys/fs/file-max

To view the number of open file limits for a process
cat/proc/10446 (PID)/limits

Set the open files numeric method
Ulimit-n 4096 Setup methods revert to their default values after they are restarted.

Permanent setting Method:
Vim/etc/security/limits.conf
At the end of the join
* Soft nofile 4096
* Hard Nofile 4096
Effective requires a reboot of the system

Number of Linux open files too many open file solution

Related Article

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.