歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Unix知識 >> 關於Unix

Solaris增加每個進程可打開文件句柄過程


更改/etc/system文件實現增加每個進程可打開文件句柄數
這段時間我管理的Solaris操作系統面對升級,oracle 數據庫備分連接的個進程文件句柄 受到了限制,於是備分滯後問題出現(比原來多花了n個小時),其實這是一個古老的問題,測試實現過程如下:
QUOTE: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

Copyright © Linux教程網 All Rights Reserved