Parameter
|
Value
|
File
|
semmsl
semmns
semopm
semmni
|
250
32000
100
128
|
/proc/sys/kernel/sem
|
shmall
|
2097152
|
/proc/sys/kernel/shmall
|
shmmax
|
Half the size of physical memory (in bytes)
|
/proc/sys/kernel/shmmax
|
shmmni
|
4096
|
/proc/sys/kernel/ shmmni
|
file-max
|
65536
|
/proc/sys/fs/ file-max
|
ip_local_port_range
|
Minimum:1024
Maximum: 65000
|
/proc/sys/net/ipv4/ ip_local_port_range
|
rmem_default
|
1048576
|
/proc/sys/net/core/ rmem_default
|
rmem_max
|
1048576
|
/proc/sys/net/core/ rmem_max
|
wmem_default
|
262144
|
/proc/sys/net/core/ wmem_default
|
wmem_max
|
262144
|
/proc/sys/net/core/ wmem_max
|
if [ $USER = "oracle" ]; then if [ $SHELL = "/bin/ksh" ]; then ulimit -p 16384 ulimit -n 65536 else ulimit -u 16384 -n 65536 fi fi 16 设置oracle的csh的编辑文件/etc/csh.login if ( $USER == "oracle" ) then limit maxproc 16384 limit descriptors 65536 endif 17在该系统上限制oracle的做文件和能启用的进程限制的 编辑文件/etc/security/limits.conf oracle soft nproc 2047 oracle hard nproc 16384 oracle soft nofile 1024 oracle hard nofile 65536
session required /lib/security/pam_limits.so session required pam_limits.so