Closed #950.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/950#event-1022123454___
sr-dev mailing list
sr-dev@lists.sip-router.org
I expected that, but the issue is that there will be problems if the size is
not provided by -m and the shm_mem_size is set after a config directive that
needs shared memory, because the size is 0 at that moment. Probably the init of
the size should be done inside the function initializing the
Your patch will override memory size set by "-m" option in case it is 64mb (-m
64).
I created another patch for my environment by moving setting sm_mem_size to
default size after yyparse().
--- kamailio-4.4.3.orig/main.c 2016-09-14 16:50:30.0 +0300
+++ kamailio-4.4.3/main.c
Can you try with the patch referenced by the commit above? If all ok, then I
will backport to 4.4 branch.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
There are no error messages. The problem is in main.c. It sets shm_mem_size to
default value before parsing config file. But cfg.y sets shm_mem_size only when
it's zero.
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
Can you check the syslog file and see if you get there some error message? The
shared memory is initialized whenever is first time needed during the parsing
of the configuration file, so it may be that the parameter was set too late.
The safest would be indeed setting it via -m command line
### Description
Config file has parameter "shm_mem_size" (or "shm" or "shm_mem") which allows
to set shared memory size (in Mb) via configuration file. This parameter worked
well in 3.1.5. Now it does not work (4.4.2). Shared memory size is always 64Mb
(default value). The only way to set