[Spce-user] Kamailio Crashes

Alex Lutay alutay at sipwise.com
Fri Sep 11 06:11:09 EDT 2015


Dear Greg,

Are you sure you have enough memory? Error itself seys:
tls: openssl bug #1491 (crash/mem leaks on low memory) ...

So you need to check config.yml options you have:
> kamailio:
>   lb:
>     pkg_mem: 16
>     shm_mem: 125
>     tcp_children: X
>     udp_children: Y

As Kamailio is trying to allocate all necessary memory on start:
allocated = children * pkg_mem (Mb) + shm_mem (Mb) + internal kamailio
threads/children.

So, if free RAM is not enough to start -> crash. It depends on X and Y
you have. I believe you have default pkg_mem and shm_mem values.

On 09/11/2015 11:55 AM, Greg Lipschitz wrote:
> We have been experiencing some random crashing. I happened to catch the logs tonight and this is what was there;
> 
> Sep 11 19:00:33 sip lb[3238]: NOTICE: <core> [main.c:733]: handle_sigs(): Thank you for flying kamailio!!!
> Sep 11 19:00:34 sip lb[12766]: WARNING: sl [../../modules/tm/tm_load.h:154]: load_tm_api(): Cannot import load_tm function from tm module
> Sep 11 19:00:34 sip lb[12766]: WARNING: tls [tls_init.c:636]: init_tls_h(): tls: openssl bug #1491 (crash/mem leaks on low memory) workaround enabled (on low memory tls operations will fail preemptively) with free memory thresholds 25690112 and 12845056 bytes
> Sep 11 19:00:34 sip lb[12766]: WARNING: sl [../../modules/tm/tm_load.h:154]: load_tm_api(): Cannot import load_tm function from tm module
> 
> Bucketloads of memory available on the box;
> 
> root at sip:~# free mem
>              total       used       free     shared    buffers     cached
> Mem:       8197516    5925268    2272248          0     802356    2639916
> -/+ buffers/cache:    2482996    5714520
> Swap:       901116          0     901116
> 
> Seems to be the SIP load balancer that is crashing - any ideas?   Just a bug?
> 
> root at sip:~# ngcpcfg version
> ngcpcfg, version 0.25.2.1+0~mr3.8.2.1

-- 
Alexander Lutay



More information about the Spce-user mailing list