linux openfiles修改
修改主要有兩個地方:
一個是:
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
但是這種情況 下:oracle ulimit -a還是不生效
[oracle@rman1 ~]$ 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) 7336
max locked memory (kbytes, -l) 64
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) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
還有就是修改這個地方:
/etc/security/limits.d/90-nproc.conf
一個是:
/etc/security/limits.conf
oracle soft nproc 2047
oracle hard nproc 16384
oracle soft nofile 1024
oracle hard nofile 65536
oracle soft stack 10240
但是這種情況 下:oracle ulimit -a還是不生效
[oracle@rman1 ~]$ 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) 7336
max locked memory (kbytes, -l) 64
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) 1024
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
還有就是修改這個地方:
/etc/security/limits.d/90-nproc.conf
如下所示:
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
root soft nproc unlimited
oracle soft nofile 65536
# Default limit for number of user's processes to prevent
# accidental fork bombs.
# See rhbz #432903 for reasoning.
* soft nproc 1024
root soft nproc unlimited
oracle soft nofile 65536
這裡面可以加別的限制,此時oracle使用者的ulimit -a生效:
[oracle@rman1 ~]$ 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) 7336
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
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) 2047
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[oracle@rman1 ~]$ 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) 7336
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 65536
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) 2047
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/26224914/viewspace-2150355/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Linux修改hostnameLinux
- Linux修改IPLinux
- linux 修改hosts檔案以及修改hostnameLinux
- Linux 修改時間Linux
- Linux修改時間Linux
- linux 修改 dns 配置LinuxDNS
- Linux下修改IPLinux
- linux修改IP地址Linux
- linux引數修改Linux
- linux的hostname修改Linux
- linux下修改mtu值Linux
- Linux修改IP永久生效Linux
- linux 修改swap空間Linux
- linux核心修改編譯Linux編譯
- Linux(CentOS)修改IP地址LinuxCentOS
- 修改Linux的基本配置Linux
- Oracle Linux 7 修改 hostnameOracleLinux
- linux修改網路卡名字Linux
- Linux 修改主機名Linux
- hostname修改理解心得-linuxLinux
- 修改linux主機名Linux
- Linux修改主機名Linux
- 修改linux字符集Linux
- linux CentOS 修改時區LinuxCentOS
- linux 修改預設路由Linux路由
- Linux下修改時間Linux
- redhat linux密碼修改RedhatLinux密碼
- Linux 批量修改檔名Linux
- Linux下修改MAC地址LinuxMac
- Linux 日期時間修改Linux
- linux中修改root口令Linux
- Linux 修改 預設 shellLinux
- Linux Ubuntu 修改網路卡名字LinuxUbuntu
- linux修改系統引數Linux
- Linux修改網路卡的名字Linux
- linux主機名的修改Linux
- Linux 修改主機名(hostname)Linux
- Linux修改sshd預設埠Linux