Modify the Linux open files parameter to be effective immediately without restarting

Source: Internet
Author: User

Changes to the open files parameters viewed by command ulimit-a:

[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) 7697

Max locked Memory (Kbytes, L) 64

Max memory Size (Kbytes,-m) unlimited

Open files (-N) 65535

Pipe Size (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) 1024

Virtual Memory (Kbytes,-V) Unlimited

File locks (-X) Unlimited

    1. The command ulimit-n number can be modified directly, but only the open files of the current session are modified, reopening a connection to view the open files or the original.

    2. Modify the configuration file/etc/security/limits.conf add

      * Soft Nofile 65535

      * Hard Nofile 65535

      Note that the format, will take effect immediately, reconnect a bit can see, ulimit-a.

Does not require a restart, it will take effect immediately.

This article is from the "Remember" blog, be sure to keep this source http://xiaozuo2010925.blog.51cto.com/3528655/1884207

Modify the Linux open files parameter to be effective immediately without restarting

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.