Ulimit change story

Source: Internet
Author: User


The alarm always starts in the early morning and crawls to query logs. When the server is restarted, the following error occurs: Bash: fork: retry: the resource is temporarily unavailable.

Run the following command after the service is started successfully:

Ulimit-A: 1024

The result is modified.

Ulimit-N 655356 # maximum files that can be opened ulimit-u 65536 # maximum number of processes that can be created

To make the next restart take effect

Modify:

/Etc/security/limits. conf

Add the following content at the end of the limits. conf configuration file:

* soft nofile 655360* hard nofile 655360* soft noproc 65536* hard noproc 65536

However, we found that the system limit has not been changed to the value I modified. The query result is that centos 6 has introduced

The/etc/security/limits. d/90-nproc.conf configuration file limits the maximum number of systems.

Modify/etc/security/limits. d/90-nproc.conf to solve the problem!



This article is from the "on the road" blog, please be sure to keep this source http://jweiang.blog.51cto.com/8059417/1548388

Ulimit change story

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.