Hello,
looked at the source code, the pkg memory is initialized before
config parsing, thus the -M should be taken in consideration.
Can you give the output with debug=3 in config or with -ddd as
command line parameter?
Cheers,
Daniel
On 6/20/13 10:42 AM, Fred wrote:
Hi everyone,
I'm using Kamailio 3.2.1 with a quite big config file. After
adding some new config lines I did a syntax check of the
configuration file with "kamailio -c -f <file>" and got the
following error output:
loading modules under
/opt/kamailio/lib/kamailio/modules_k/:/opt/kamailio/lib/kamailio/modules/
0(28755) : <core> [cfg.lex:1426]: ERROR:lex:addstr:
memory allocation error
0(28755) : <core> [cfg.lex:1428]: ERROR:lex:addstr: try
to increase pkg size with -M parameter
increasing the pkg memory (-M) or shared memory (-m) has no
effect.
I played around with the size of the configuration file with xlog
lines and the cause really seems to be the size of the config
file.
Restart of Kamailio is possible without problems, it is only the
syntax check that leads to the memory error output
Is there any possibility to increase the memory for the syntax
check?
Regards
Fred
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla - http://www.asipto.com
http://twitter.com/#!/miconda - http://www.linkedin.com/in/miconda