1. 程式人生 > 其它 >because another server process exited abnormally and possibly corrupted shared memory

because another server process exited abnormally and possibly corrupted shared memory

一、環境 系統平臺:Linux x86-64 Red Hat Enterprise Linux 7 版本:4.1.1 二、症狀

Red Hat 7.2作業系統部署HGDB 4.1.1後,日誌經常出現報錯:

because another server process exited abnormally and possibly corrupted shared memory

三、問題原因

在Red Hat 7.2中,systemd-logind 服務引入了一個新特性,該新特性是:當一個user完全退出os之後,remove掉這個user所有的IPC objects。

該特性由/etc/systemd/logind.conf引數檔案中RemoveIPC選項來控制。

在Red Hat 7.2中,RemoveIPC的預設值為yes

四、解決方案

cat /etc/systemd/logind.conf

[Login]

#NAutoVTs=6

#ReserveVT=6

#KillUserProcesses=no

#KillOnlyUsers=

#KillExcludeUsers=root

#InhibitDelayMaxSec=5

#HandlePowerKey=poweroff

#HandleSuspendKey=suspend

#HandleHibernateKey=hibernate

#HandleLidSwitch=suspend

#HandleLidSwitchDocked=ignore

#PowerKeyIgnoreInhibited=no

#SuspendKeyIgnoreInhibited=no

#HibernateKeyIgnoreInhibited=no

#LidSwitchIgnoreInhibited=yes

#IdleAction=ignore

#IdleActionSec=30min

#RuntimeDirectorySize=10%

#RemoveIPC=yes

修改RemoveIPC為no,並重啟服務:

set RemoveIPC=no in /etc/systemd/logind.conf

Reboot the server or restart systemd-logind as follows:

systemctl daemon-reload

systemctl restart systemd-logind