Linux File Identifier Restrictions

Source: Internet
Author: User

You know, in the world of Linux, everything is file. Therefore, the first step to achieve large concurrency, modify the Linux system file identifier limit number, that is, the number of file open limit

First, the total limit at the kernel level Fs.file-max

 man proc  has such a phrase   /proc/sys/fs/file-max               This  file  defines  a   system-wide  limit on the number of open               files for all processes.   (see  also setrlimit (2), which  can  be               used  by  a process to set  the per-process limit, RLIMIT_NOFILE,               on the number of files it may open.)   If you get lots  of  error               messages  about running out of file handles, try  Increasing this              value:               echo 100000 >  /proc/sys/fs/file-max
View Limit number Fs.file-max[[email protected]]# sysctl Fs.file-maxfs.file-max = 65535 Modify Limit number [email protected]]# sysctl-w Fs.file-max=6553500fs.file-max = 6553500

/PROC/SYS/FS/FILE-NR usage of FD in the recording system, number of allocated file handles

[[email protected]]# sysctl FS.FILE-NRFS.FILE-NR = 960 0 6553500


Linux File Identifier Restrictions

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.