Also i noticed that if i run manually it starts without error
/usr/sbin/kamailio -P /var/run/kamailio.pid -m 125 -M 32 -u kamailio -g
kamailio
Is there any specific file i need to modify to set these memory values?
I am using CentOS 6
On Fri, Sep 23, 2016 at 6:54 PM, Linux Vince <linuxv(a)gmail.com> wrote:
I am getting below error when i start kamailio
Not starting : invalid configuration file!
0(2360) ERROR: <core> [mem/f_malloc.c:415]: fm_search_defrag():
fm_search_defrag(0x7f732c5ff010, 232); Free fragment not found!
0(2360) ERROR: <core> [mem/f_malloc.c:498]: fm_malloc():
fm_malloc(0x7f732c5ff010, 232) called from core: route_struct.c:
mk_action(118), module: core; Free fragment not found!
0(2360) CRITICAL: <core> [route_struct.c:137]: mk_action(): memory
allocation failure
0(2360) ERROR: <core> [mem/f_malloc.c:415]: fm_search_defrag():
fm_search_defrag(0x7f732c5ff010, 40); Free fragment not found!
0(2360) ERROR: <core> [mem/f_malloc.c:498]: fm_malloc():
fm_malloc(0x7f732c5ff010, 40) called from core: cfg.y: yyparse(2636),
module: core; Free fragment not found!
0(2360) : <core> [cfg.y:3368]: yyerror_at(): parse error in config file
/etc/kamailio/proxy.cfg, line 5372, column 3-28: Not enough memory
ERROR: bad config file (1 errors)
I tried increasing SHM_MEMORY and PKG_MEMORY under /etc/default/kamailio
I doubled memory but still getting same error.
Is there any other place i should look at ?