日期:2014-05-16 浏览次数:20687 次
# prctl -n process.max-file-descriptor $$ process: 110453: -sh NAME PRIVILEGE VALUE FLAG ACTION RECIPIENT process.max-file-descriptor basic 256 - deny 11731 privileged 65.5K - deny - system 2.15G max deny
MORE INFO :? http://docs.oracle.com/cd/E26926_01/html/E25831/rmctrls.task-33.html
?
?
设置参数:(10G)
vi /etc/system
set noexec_user_stack=1
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semvmx=32767
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
重启root/
?
? 如下参数如果没有提示,就不需要修改//
?? * set hard limit on file descriptors
?? set rlim_fd_max = 4096
?? * set soft limit on file descriptors
?? set rlim_fd_cur = 1024
?
max_user_process
http://www.dbatoolz.com/t/11gr2-install-fails-hard-limit-maximum-user-processes.html
?
solaris问答:
http://www.uplooking.com/content/view/1626/
?
?
11G:///
Oracle Metalink was useless — total waste of time — I hate that site now, it’s gone completely into the crapper.
SOLUTION (thanks to David D’Acquisto advice):
1) edit /etc/system as follows:
set shmsys:shminfo_shmmax=12025908428
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmni=100
set semsys:seminfo_semmns=1024
set shmsys:shminfo_shmmin=1
set max_nprocs=30000
set maxuprc=16384
2) setup project for oracle user (if it’s already setup then just ignore the duplicate error while running projadd command):
projadd -U oracle user.oracle
projmod -s -K "project.max-sem-ids=(priv,100,deny)" user.oracle
projmod -s -K "process.max-sem-nsems=(priv,256,deny)" user.oracle
projmod -s -K "project.max-shm-memory=(priv,12025908428,deny)" user.oracle
projmod -s -K "project.max-shm-ids=(priv,100,deny)" user.oracle
projmod -s -K "process.max-file-descriptor=(priv,65536,deny)" user.oracle
3) bounce the box:
init 6
Here’s how to check for the setting:
## before above changes were applied
##
$ kstat|grep v_proc
??????? v_proc????????????????????????? 16362
$
?
$ kstat |grep v_maxup
??????? v_maxup???????????????????????? 16357
??????? v_maxupttl????????????????????? 16357
$
?
## after changes/reboot
##
?
$ kstat|grep v_proc
??????? v_proc????????????????????????? 30000
$
?
$ kstat |grep v_maxup
??????? v_maxup???????????????????????? 16384
??????? v_maxupttl????????????????????? 29995
$
NOTE: the setting above are based on 16gb of RAM if yours is less/more — adjust as per David’s formula.
No related posts.