突破ulimit 限制
- 修改普通用戶單個用戶可同時運行的最大進程數 (默認爲 4096 )
[root@xxx devops]# cat /etc/security/limits.d/20-nproc.conf
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 65535
root soft nproc unlimited
- 修改文件句柄數
[root@xxx devops]#cat /etc/security/limits.conf
root soft nofile 655350
root hard nofile 655350
* soft nofile 655350
* hard nofile 655350