cancel
Showing results for 
Search instead for 
Did you mean: 

Memory segment error.

 
Highlighted

Memory segment error.

shmsegCreateNewSeg(): ERRNO=12
Failed to get another shared memory segment (required size=100761552 bytes)
*** LIBSHMADM - IPC Error
shmAlloc(): Cannot create new SHM segment


The above error keeps generated some oftens in our billing servers using BSCS_iX. However rebooting the server solves the issue for some time then it appears again after 2 weeks or less.

Has any one came through such error and how to resolve it?
20 REPLIES 20
Highlighted
Honored Contributor

Re: Memory segment error.

do you see high memory usage in this time?

Seems ur memory is filled up and can no more allocate a chunck of required size.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Highlighted
Honored Contributor

Re: Memory segment error.

Hello,

You should check the kernel param.

shmseg and shmmni

Maybe try to increment those.

shmmax should be just about the size of your installed phys. memory

Use sam to check/modify those parameters.

Horia.
Best regards from Romania,
Horia.
Highlighted
Acclaimed Contributor

Re: Memory segment error.

>Has any one came through such error and how to resolve it?

You could be running out of 32 bit shared memory virtual address space.

What does "ipcs -ma" show?
Highlighted

Re: Memory segment error.

The platform is ia64 rx6600
Memory is 8GB.

top command output for memory is:
Memory: 3912832K (3838796K) real, 5650048K (5364812K) virtual, 1141256K free Page# 1/6

Kernal Values:
shmmax 3398046511104
shmmni 1024
shmseg 600

ipcs -ma output: attached
Highlighted
Acclaimed Contributor

Re: Memory segment error.

>ipcs -ma output: attached

The sum is: Total: 2627789020 count: 47
This is more than 2 Gb and doesn't include any 32 bit shlibs or mapped files.

You have 32 segments all created by:
thurate bscs 3 67108864
They still have attached processes.
Highlighted
Honored Contributor

Re: Memory segment error.

I would still like to know if you had any memory crunch, when this error comes.

If it is then your process is not releasing the memory and in that case you have to check with vendor or maually clear the shared memory.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Highlighted
Acclaimed Contributor

Re: Memory segment error.

>Kapil: I would still like to know if you had any memory crunch

You can run out of 32 bit shared memory virtual addresses before you run out of swap, 2 Gb vs 8 Gb. Unless using memory windows.
Highlighted

Re: Memory segment error.

Thanks for you replies, but today I have a new output for ipcs-ma it shows 0 values in NATTCH column.Do I have to clear these processes manually or the system will take care?

Regarding the memory crunch I dont notice any thing like this, but i will consider that in future.
Highlighted
Acclaimed Contributor

Re: Memory segment error.

>I have a new output for ipcs -ma it shows 0 values in NATTCH column. Do I have to clear these processes manually or the system will take care?

You'll have to clean those up with ipcrm(1), unless the application in question wants to keep those segments around. But if so, there should only be a few of them.