Hi,<br><br>i checked the system there is 6 GB ram.<br><br>Michael<br><br><div class="gmail_quote">Am 13. April 2012 11:34 schrieb Michael Schoepfer <span dir="ltr"><<a href="mailto:michael.schoepfer@gmail.com">michael.schoepfer@gmail.com</a>></span>:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br><br>this was set to: <br><br>ulimit -c unlimited<br><br>and i changed it to:<br><br>ulimit -l 524288<br><br>Now it seems to work. Thanks for that. But i didn't change the value originally?<br>
<br>Michael<br><br>
<br><br><br><br><div class="gmail_quote">Am 13. April 2012 11:19 schrieb Andrew Pogrebennyk <span dir="ltr"><<a href="mailto:apogrebennyk@sipwise.com" target="_blank">apogrebennyk@sipwise.com</a>></span>:<div><div class="h5">
<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Michael,<br>
Please check /etc/init.d/kamailio-proxy, it should have something like:<br>
# raise memlock limit, otherwise mysql client fails to initialize<br>
ulimit -l 524288<br>
before OPTIONS="..." line. Try increasing it by 2x.<br>
<br>
Alternatively you can set the fetch_rows usrloc module parameter<br>
<a href="http://kamailio.org/docs/modules/3.1.x/modules_k/usrloc.html#id2997066" target="_blank">http://kamailio.org/docs/modules/3.1.x/modules_k/usrloc.html#id2997066</a><br>
to something smaller, e.g. 1000:<br>
modparam("usrloc", "fetch_rows", 1000)<br>
in proxy.cfg.customtt.tt2. Let me know if it helps.<br>
<div><br>
On 04/13/2012 10:20 AM, Michael Schoepfer wrote:<br>
> I have about 100 users in the system and about 200 rewrite rules. The<br>
> following appears upon starting the kamailo proxy. I think its related<br>
> to the log entries.<br>
<br>
</div>This is suggesting the problem is with usrloc module, not dialplan<br>
(rewrite rules):<br>
<div><div>> Apr 13 03:13:47 media3 /usr/sbin/kamailio[13380]: ERROR: usrloc<br>
> [ul_mod.c:345]: child(0): failed to connect to database<br>
> Apr 13 03:13:47 media3 /usr/sbin/kamailio[13380]: ERROR: <core><br>
> [sr_module.c:832]: init_mod_child(): Error while initializing module<br>
> usrloc (/usr/lib/kamailio/modules_k/usrloc.so)<br>
</div></div></blockquote></div></div></div><br>
</blockquote></div><br>