安裝Oracle檢測linux核心參數

來源:互聯網
上載者:User

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

 

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.