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