In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Server 32 GB memory space
Parameter optimization
$vi postgresql.conf
Shared_buffers = 3072MB
Max_connections = 4000
Work_mem = 4MB
Effective_cache_size = 4GB
Maintenance_work_mem = 512MB
Wal_buffers = 256
Reference for explanation of specific optimization parameters: https://blog.csdn.net/zhousenshan/article/details/70233820
Error starting service
$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
Analysis:
This is because the configuration of shared memory in kernel parameters limits the maximum number of connections. For more information, please see blog: https://www.cnblogs.com/xiaotengyi/p/5439231.html
Solution:
# vi / etc/sysctl.conf
Kernel.sem = 50100 128256000 50100 2560
Overload configuration
# 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
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.