Tag Archives: because another server process exited abnormally and possibly corrupted shared memory

because another server process exited abnormally and possibly corrupted shared memory

1、 Environment

System platform: Linux x86-64 Red Hat Enterprise Linux 7

Version: 4.1.1

 

2、 Symptoms

After hgdb 4.1.1 is deployed on red hat 7.2 operating system, errors are often reported in the log:

because another server process exited abnormally and possibly corrupted shared memory

 

3、 Cause of problem

In red hat 7.2, the SYSTEMd login service introduces a new feature: when a user completely exits the OS, remove all IPC objects of the user.

This feature is controlled by the removeipc option in the/etc/SYSTEMd/logind.conf parameter file.

In red hat 7.2, the default value of removeipc is yes

 

4、 Solution

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

 

Modify removeipc to no and restart the service:

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

Reboot the server or restart systemd-logind as follows:

 

systemctl daemon-reload

systemctl restart systemd-logind