案例说明:
在kylin系统下数据库启动出现“could not open shared memory segment xxxx"的故障,故障如下所示:
适用版本:
KingbaseES V8R3/R6
问题分析:
1、 此问题涉及到share memory segment,查看内核参数配置sysctl. conf,没有发现有异常。
2、对于共享内存管理模式是posix的,如下图所示:
当启动数据库服务后,访问共享内存段,将会在/dev/shm下创建一个临时文件(共享内存段控制文件)。
如下所示,如果主机上启动多个数据库服务进程,将创建多个对应文件:
# 查看数据库服务进程
[kingbase@node1 bin]$ netstat -antlp |grep 54321
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.

5135

被折叠的 条评论
为什么被折叠?



