GBase 8c
安装配置
文章

FAQ : 可用内存不够,导致数据库启动失败

GBase社区管理员
发表于2023-04-27 13:08:57321次浏览0个评论

问题:

启动数据库失败。


问题分析:
查看日志,发现报错信息
FATAL:could not create shared memorysegment: Cannot allocate memory
WARNING:Failed to initialize the memoryprotect for g instance.attr.attr storage.cstore buffers (1024 Mbytes) or shared memory (4574 Mbytes) is larger.
HINT:This error usually means that openGauss's request for a shared memory segment exceeded available memory or swap space, or exceeded your kernel's SHMALL parameter.You can either reduce request size or reconfigurethe
kernel with larger SHMALL .Toreduce the request size (currently 4797079552 bytes)

free -h
发现available过小,此服务器配置为4G,未能达到。
可用内存不足 导致无法启动服务。
服务器中运行8s服务占用过多内存。


解决方案:
将服务器中8s服务关闭,留出可用内存,成功启动8c数据库。

评论已关闭