Would running rmlocks periodically to test if the shared mem error is happening be ok? I'm seeing these errors come up more often since I'm creating/deleting more temp db's. I'm thinking about scheduling the following script every hour:
if rmlocks -f 2>&1| grep -q "Open shared mem failed"
then
echo "failed"
ipcs -m | awk '/^0x/ && $6 == 0 && $1 != "0xdbaccee5" {print $2}' | while read id; do ipcrm -m $id; done
else
echo "pass"
fi
if rmlocks -f 2>&1| grep -q "Open shared mem failed"
then
echo "failed"
ipcs -m | awk '/^0x/ && $6 == 0 && $1 != "0xdbaccee5" {print $2}' | while read id; do ipcrm -m $id; done
else
echo "pass"
fi