Cannot Increase "nproc" Value More Than 1024 in Oracle Linux 6 (Doc ID 1487773.1)

来源:互联网 发布:注册免费域名 编辑:程序博客网 时间:2024/05/16 11:11

In this Document

 Symptoms Cause Solution


APPLIES TO:

Linux OS - Version Oracle Linux 6.2 with Unbreakable Enterprise Kernel [2.6.39] and later
Generic Linux
Review currency on 25th.Oct 2014

SYMPTOMS

"/etc/security/limits.conf" is updated with the following and the server is rebooted:

* - nproc 16384


However, "ulimit -a" (for root & all users) still shows the 1024 for "max user processes" instead of 16384:

# ulimit -a

...

max user processes              (-u) 1024

...

 

CAUSE

Oracle Linux 6 has another file setting the nproc value: /etc/security/limits.d/90-nproc.conf

#  cat /etc/security/limits.d/90-nproc.conf

*          soft    nproc     1024

 

SOLUTION

Update "/etc/security/limits.d/90-nproc.conf" and change

*          soft    nproc     1024


to

* - nproc 16384
0 0
原创粉丝点击