[SR-Users] SHM error after few days...

Krishna Kurapati kkurapat at gmail.com
Tue May 13 23:55:17 CEST 2014


Hi,

After few days of running kamailio (I am using TLS for client), suddenly I
see that the connections are being dropped.

When I restart kamailio, I see following errors:

Stopping kamailio:                                         [FAILED]
Not starting : invalid configuration file!

 0(20563) : <core> [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init:
could not attach shared memory segment: Cannot allocate memory
 0(20563) : <core> [mem/mem.c:125]: init_shm_mallocs(): could not
initialize shared memory pool, exiting...
Too much shared memory demanded: 4294967296
 0(20563) ERROR: <core> [sr_module.c:627]: load_module(): ERROR:
load_module: /usr/lib64/kamailio/modules/tls.so: mod_register failed
 0(20563) : <core> [cfg.y:3408]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 328, column 12-19: failed to load module
 0(20563) : <core> [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init:
could not attach shared memory segment: Cannot allocate memory
 0(20563) : <core> [mem/mem.c:125]: init_shm_mallocs(): could not
initialize shared memory pool, exiting...
Too much shared memory demanded: 4294967296
 0(20563) : <core> [cfg.y:3411]: yyerror_at(): parse error in config file
/etc/kamailio/kamailio.cfg, line 357, column 71: Can't initialize shared
memory
ERROR: bad config file (2 errors)
 0(20563) ERROR: mi_fifo [mi_fifo.c:271]: mi_destroy(): FIFO stat failed:
Bad address

My shared memory size for the kamailio is 4096M.

It started fine initially. However, after I noticed connection drops, I see
the above
issue.

THen I reduced shared memory to 2048M and it started fine.

I am under the impression that shared memory is just a filed I/O mapped
which can be several hundred gigs.

I looked at my filesystem. It looks fine

df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda3            958788080 200734800 709349640  23% /
tmpfs                  3975996         0   3975996   0% /dev/shm
/dev/sda1               495844     37498    432746   8% /boot


What could be wrong here?

Any help greatly appreciated.

Krish Kurapati
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sip-router.org/pipermail/sr-users/attachments/20140513/1cb43b24/attachment.html>


More information about the sr-users mailing list