1833718 Members
2408 Online
110063 Solutions
New Discussion

shared memory fail

 
j773303
Super Advisor

shared memory fail

When I start the glance, the error message will display as below,
mi_create - shared memory database initialization fail; vss=15004672 bytes, the current kermel paramters has been tuen as below,
nproc 2048
shmmni 512
shmseq 500
shmmax 5G

Does anyone has the experience how to troubleshoot this case?
Hero
4 REPLIES 4
Graham Cameron_1
Honored Contributor

Re: shared memory fail

The problem is with midaemon, which is started up automatically(if not already running) when you start up glance.
It can also be started manually.
The program is /opt/perf/bin/midaemon, and it will log status and error to /var/opt/perf/status.mi
(If that file cannot be created, midaemon will create /tmp/status.mi instead).
Take a look at that file for clues.
It could be that it can't find your kernel if it is not the standard one (/stand/vmunix).
There are a number of options you can try to start it up with manually.
Use "man midaemon" for more info.

BTW - your entry for shmmax looks a little odd, my system has:
shmmax 0X40000000

-- Graham
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
j773303
Super Advisor

Re: shared memory fail

While start one informix engine, then glance can start properly. But start 2 informix engine, then glance can't running with error message. I view the swap only 20%, memory also hase enough. Any other solutions on shared memory not enough problem?
Hero
Graham Cameron_1
Honored Contributor

Re: shared memory fail

Try running "midaemon -p" before you start up either Informix instance.
The -p = permanent, midaemon will remain running all the time.
Computers make it easier to do a lot of things, but most of the things they make it easier to do don't need to be done.
T G Manikandan
Honored Contributor

Re: shared memory fail

check two things

1.check your memory and swap usage on the system
#swapinfo -ta

2.your shmmnis 512

What is the output of
#ipcs -s | wc -l

It this crosses the value of 512 then you will have to increase that value.

Revert