Operating System - HP-UX
1833875 Members
1768 Online
110063 Solutions
New Discussion

error message "shm open fail"

 
Günther Hänsel
Occasional Contributor

error message "shm open fail"

what means this error exactly? if i start a
COBOL-program, this message is the answer.

5 REPLIES 5
Torsten Hell
Occasional Advisor

Re: error message "shm open fail"

Hi!

Maybe the shared memory segment belongs to another user (check with ipcs command) or the amount of shared memory you wanted to allocate is larger then defined in kernel parameter SHMMAX (check with kmtune -q shmmax)

good luck
CHRIS_ANORUO
Honored Contributor

Re: error message "shm open fail"

Increase Shared memory parameters in the Kernel configuration setup.
When We Seek To Discover The Best In Others, We Somehow Bring Out The Best In Ourselves.
Vincenzo Restuccia
Honored Contributor

Re: error message "shm open fail"

shmmax specifies system-wide maximum allowable shared memory segment size.

Acceptable Values:
Minimum
2048 (2 Kbytes)
Maximum
0x40000000 (1024 Mbytes) on 32-bit systems
Maximum 1 Tbyte on 64-bit systems
Default
0x04000000 (64 Mbytes).

For more information on configurable kernel parametes, see:

http://docs.hp.com/hpux/onlinedocs/os/KCparam.ShMmax.html
Klaus Crusius
Trusted Contributor

Re: error message "shm open fail"

You could install a system call-tracing program (trace on hpux10, tusc on hpux11), which are available in the hp public domain, to find out which system call is failing (probably shmget), what is the key of the shared memory, and which return code is delivered. Refer to man pages of shmget, ipcs.
There is a live before death!

Re: error message "shm open fail"

Do you have Oracle on your system? Does this program have embedded SQL code in it? If so, possibly the wrong procob.mk file was used. I've never gotten this message on HP yet, but I have had it several times on SUN boxes. Check the procob.mk file.