日期:2014-05-16  浏览次数:20795 次

linux文件最大连接数问题---bash: ulimit: open files: cannot modify limit: Operation not permitted

问题描述:

登录系统报错,-bash: ulimit: open files: cannot modify limit: Operation not permitted

Last login: Thu Aug 23 14:42:27 2012 from 10.6.90.41
-bash: ulimit: open files: cannot modify limit: Operation not permitted
-bash: ulimit: open files: cannot modify limit: Operation not permitted

实际上是执行ulimit命令时,出现问题

-bash-3.2$ 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) 1064960
max locked memory       (kbytes, -l) 32
max memory size         (kbytes, -m) unlimited
open files                      (-n) 1024
pipe size            (512 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) 16384
virtual memory          (kbytes, -v) unlimited
file locks                      (-x) unlimited
-bash-3.2$
-bash-3.2$ ulimit -u 16384 -n 65536
-bash: ulimit: open files: cannot modify limit: Operation not permitted
-bash-3.2$

相关配置均没有问题

-bash-3.2$ cat /etc/security/limits.conf

#add by wj for rac
oracle           soft    nproc           2047
oracle           hard    nproc           16384
oracle           soft    nofile          1024
oracle           hard    nofile          65536
grid             soft    nproc           2047
grid             hard    nproc           16384
grid             soft    nofile          1024
grid             hard    nofile          65536

-bash-3.2$ cat /etc/pam.d/login
#add by wj for rac
sessi