- 论坛徽章:
- 0
|
更改/etc/system文件实现增加每个
进程
可打开
文件
句柄
数
这段时间我
管理
的Solaris操作系统面对升级,oracle
数据库
备分连接的个进程文件句柄 受到了限制,于是备分滞后问题出现(比原来多花了n个小时),其实这是一个古老的问题,测试实现过程如下:
Step1: check current status(stack,nofiles) using “ulimit –a” command
login as: admin
Using keyboard-interactive authentication.
Password:
Last login: Sat Jul 19 23:28:17 2008 from 192.168.1.9
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 1024
memory(kbytes) unlimited
Step 2:modify file /etc/system(login as root) .Then reboot pc, that’s absolutely necessary.
$ su -
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
##### We append /etc/system ######
#vi /etc/system
*set Hard limit on file descriptors
set rlim_fd_max=8192
*set soft limit on file descriptors
set rlim_fd_cur=4096
"/etc/system" 81 lines, 1996 characters
#reboot
Step 3: check current status again login as both root and common user
############wait for starting OS ###############
login as: admin
Using keyboard-interactive authentication.
Password:
Last login: Sat Jul 19 23:28:17 2008 from 192.168.1.9
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ su -
Password:
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
# ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 4096
memory(kbytes) unlimited
# su - admin
Sun Microsystems Inc. SunOS 5.10 Generic January 2005
$ ulimit -a
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8480
coredump(blocks) unlimited
nofiles(descriptors) 4096
memory(kbytes) unlimited
成功,同时我向老美提交了我的日志!(我的另外一个Blog,我也写了日志)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/69112/showart_1086770.html |
|