91超碰碰碰碰久久久久久综合_超碰av人澡人澡人澡人澡人掠_国产黄大片在线观看画质优化_txt小说免费全本

溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

PGSQL優化后出錯could not create semaphores: No space

發布時間:2020-09-15 17:16:35 來源:網絡 閱讀:2236 作者:斷臂人 欄目:數據庫

服務器32G內存空間


參數優化

$ vi postgresql.conf

shared_buffers = 3072MB

max_connections = 4000

work_mem = 4MB

effective_cache_size = 4GB

maintenance_work_mem = 512MB 

wal_buffers = 256


具體優化參數解釋參考:https://blog.csdn.net/zhousenshan/article/details/70233820


啟動服務出錯

$ pg_ctl -D /data/pg_data start

server starting

$ LOG:  could not create IPv6 socket: Address family not supported by protocol

FATAL:  could not create semaphores: No space left on device

DETAIL:  Failed system call was semget(5432124, 17, 03600).

HINT:  This error does *not* mean that you have run out of disk space.  It occurs when either the system limit for the maximum number of semaphore sets (SEMMNI), or the system wide maximum number of semaphores (SEMMNS), would be exceeded.  You need to raise the respective kernel parameter.  Alternatively, reduce PostgreSQL's consumption of semaphores by reducing its max_connections parameter.

        The PostgreSQL documentation contains more information about configuring your system for PostgreSQL.

LOG:  database system is shut down


分析:

這是因為內核參數中共享內存的配置限制了最大連接數,具體參考博客:https://www.cnblogs.com/xiaotengyi/p/5439231.html


解決辦法:

# vi /etc/sysctl.conf

kernel.sem = 50100 128256000 50100 2560


重載配置

# sysctl -p

vm.min_free_kbytes = 409600

vm.vfs_cache_pressure = 200

vm.swappiness = 0

fs.file-max = 6815744

fs.aio-max-nr = 1048576

kernel.sysrq = 1

kernel.sem = 50100 128256000 50100 2560

net.core.rmem_default = 2621440

net.core.wmem_default = 2621440

net.core.rmem_max = 2621440

net.core.wmem_max = 2621440

net.ipv4.tcp_rmem = 4096        655360   2621440

net.ipv4.tcp_wmem = 4096        655360   2621440

向AI問一下細節

免責聲明:本站發布的內容(圖片、視頻和文字)以原創、轉載和分享為主,文章觀點不代表本網站立場,如果涉及侵權請聯系站長郵箱:is@yisu.com進行舉報,并提供相關證據,一經查實,將立刻刪除涉嫌侵權內容。

AI

页游| 包头市| 尉犁县| 长丰县| 贵溪市| 读书| 拉萨市| 潮州市| 常州市| 兴隆县| 南溪县| 清苑县| 洪湖市| 绥江县| 大安市| 台南县| 额济纳旗| 双牌县| 临潭县| 东丰县| 汝阳县| 大同县| 比如县| 嘉善县| 名山县| 荔波县| 泗阳县| 河西区| 军事| 邹城市| 青神县| 拉萨市| 石狮市| 镇康县| 高阳县| 鲁山县| 衡南县| 康乐县| 邯郸县| 济阳县| 抚松县|