<div dir="ltr">Hi,<div><br></div><div>After few days of running kamailio (I am using TLS for client), suddenly I</div><div>see that the connections are being dropped. </div><div><br></div><div>When I restart kamailio, I see following errors:</div>
<div><br></div><div><div>Stopping kamailio:                                         [FAILED]</div><div>Not starting : invalid configuration file!</div><div><br></div><div> 0(20563) : <core> [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init: could not attach shared memory segment: Cannot allocate memory</div>
<div> 0(20563) : <core> [mem/mem.c:125]: init_shm_mallocs(): could not initialize shared memory pool, exiting...</div><div>Too much shared memory demanded: 4294967296</div><div> 0(20563) ERROR: <core> [sr_module.c:627]: load_module(): ERROR: load_module: /usr/lib64/kamailio/modules/tls.so: mod_register failed</div>
<div> 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</div><div> 0(20563) : <core> [mem/shm_mem.c:168]: shm_getmem(): ERROR: shm_mem_init: could not attach shared memory segment: Cannot allocate memory</div>
<div> 0(20563) : <core> [mem/mem.c:125]: init_shm_mallocs(): could not initialize shared memory pool, exiting...</div><div>Too much shared memory demanded: 4294967296</div><div> 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</div>
<div>ERROR: bad config file (2 errors)</div><div> 0(20563) ERROR: mi_fifo [mi_fifo.c:271]: mi_destroy(): FIFO stat failed: Bad address</div></div><div><br></div><div>My shared memory size for the kamailio is 4096M.</div><div>
<br></div><div>It started fine initially. However, after I noticed connection drops, I see the above</div><div>issue.</div><div><br></div><div>THen I reduced shared memory to 2048M and it started fine.</div><div><br></div>
<div>I am under the impression that shared memory is just a filed I/O mapped</div><div>which can be several hundred gigs.</div><div><br></div><div>I looked at my filesystem. It looks fine</div><div><br></div><div><div>df</div>
<div>Filesystem           1K-blocks      Used Available Use% Mounted on</div><div>/dev/sda3            958788080 200734800 709349640  23% /</div><div>tmpfs                  3975996         0   3975996   0% /dev/shm</div><div>
/dev/sda1               495844     37498    432746   8% /boot</div></div><div><br></div><div><br></div><div>What could be wrong here?</div><div><br></div><div>Any help greatly appreciated.</div><div><br></div><div>Krish Kurapati</div>
<div><br></div></div>