1. 程式人生 > >安裝Oracle檢測linux核心引數

安裝Oracle檢測linux核心引數

Checking kernel parameters

Checking for semmsl=250; found semmsl=250.    Passed

Checking for semmns=32000; found semmns=32000.    Passed

Checking for semopm=100; found semopm=32.    Failed <<<<

Checking for semmni=128; found semmni=128.    Passed

Checking for shmmax=536870912; found shmmax=68719476736.    Passed

Checking for shmmni=4096; found shmmni=4096.    Passed

Checking for shmall=2097152; found shmall=4294967296.    Passed

Checking for file-max=65536; found file-max=88989.    Passed

Checking for VERSION=2.6.9; found VERSION=2.6.18-92.el5xen.    Passed

Checking for ip_local_port_range=1024 - 65000; found ip_local_port_range=32768 - 61000.    Failed <<<<

Checking for rmem_default=262144; found rmem_default=126976.    Failed <<<<

Checking for rmem_max=262144; found rmem_max=131071.    Failed <<<<

Checking for wmem_default=262144; found wmem_default=126976.    Failed <<<<

Checking for wmem_max=262144; found wmem_max=131071.    Failed <<<<

Check complete. The overall result of this check is: Failed <<<<

Problem: The kernel parameters do not meet the minimum requirements (see above).

Recommendation: Perform operating system specific instructions to update the kernel parameters.

修改 /etc/sysctl.conf 核心配置檔案,增加/修改以下專案,如沒有自己新增

kernel.shmall = 2097152 # 可以使用的共享記憶體的總量。

kernel.shmmax = 2147483648 # 最大共享記憶體段大小。

kernel.shmmni = 4096 # 整個系統共享記憶體段的最大數目。

kernel.sem = 250 32000 100 128 # 每個訊號物件集的最大訊號物件數;系統範圍內最大訊號物件數;每個訊號物件支援的最大運算元;系統範圍內最大訊號物件集數。

fs.file-max = 65536 # 系統中所允許的檔案控制代碼最大數目。

net.ipv4.ip_local_port_range = 1024 65000 # 應用程式可使用的IPv4埠範圍。

net.core.rmem_default = 4194304 # 套接字接收緩衝區大小的預設值

net.core.rmem_max = 4194304 # 套接字接收緩衝區大小的最大值

net.core.wmem_default = 262144 # 套接字傳送緩衝區大小的預設值

net.core.wmem_max = 262144 # 套接字傳送緩衝區大小的最大值

執行下面的命令使得核心引數生效:

/sbin/sysctl –p