Linux modified maximum file open, handle number

Source: Internet
Author: User

1. View The Linux system version number Cat/etc/issue See all Linux machines for CentOS release 5.5 (Final)

2. Modify The method according to linux5.x:

A. log in as root, modify the system parameter number configuration , vi/etc/sysctl.conf

kernel.msgmax=65536(modified parameters)

Fs.file-max = 65536 (new parameter)

Run the sysctl-p command to make the parameters effective immediately after the modification is complete.

B. Root user Modify vi/etc/security/limits.conf after adding the following configuration at the end, log back in to the system.

* Soft Nproc 65536

* Hard Nproc 65536
* Soft Nofile 65536

* Hard Nofile 65536

C. using the normal user Cisco Login System to execute the command ulimit-a View the modified content has taken effect:

[Email protected] ~]$ ulimit-a

Core file size (blocks,-c) 0
Data seg Size (Kbytes,-D) Unlimited
Scheduling Priority (-e) 0
File size (blocks,-f) Unlimited
Pending signals (-i) 34816
Max locked Memory (Kbytes, L) 32
Max memory Size (Kbytes,-m) unlimited
open Files (-N) 65536
         pipe size             (512  BYTES, -P)  8
       POSIX message queues       (bytes, -q)  819200
       real-time priority                (-R)  0
        stack size                (kbytes, -s)  10240
       cpu  time                (seconds,  -T)  unlimited
         MAX User Processes (-u) 65536
Virtual Memory (Kbytes,-V) Unlimited
File locks (-X) Unlimited


This article is from the "less stubborn" blog, please be sure to keep this source http://xushaojie.blog.51cto.com/6205370/1697449

Linux modified maximum file open, handle number

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.