<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
On 1/11/12 7:53 PM, Henry Fernandes wrote:
<blockquote
cite="mid:7ADBE2AD-30A7-48D0-8759-A3D9971D91EB@usinternet.com"
type="cite">I've tried all sorts of values.
For binrpc_max_body_size, I've tried from 8 up to 10000.
For binrpc_struct_max_body_size, I've tried from 2 up to 10000.
<div><br>
</div>
<div>Here are the number of entries in my LCR tables.</div>
<div>
<ul>
<li>lcr_gw: 47</li>
<li>lcr_rule: 1841</li>
<li>lcr_rule_target: 1846</li>
</ul>
</div>
<div><br>
</div>
</blockquote>
<br>
I checked a bit in the source of lcr, there are couple of while
loops, some of them nested -- not being a user of the module, cannot
estimate the size of the dump.<br>
<br>
Do you work with git or have kamailio installed from some packages
(e.g., rpms, debs)? I plan to make a patch to be able use system
memory for output buffer, so it can be increased a lot, without
affecting the pkg.<br>
<br>
Another thing that can happen, is a bug in giving the length of a
lcr attribute. It may be the case, as 10MB looks enough for me. Can
you try with less records and discover what is the limit of going
over output buffer size?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:7ADBE2AD-30A7-48D0-8759-A3D9971D91EB@usinternet.com"
type="cite">
<div>-H</div>
<div><br>
</div>
<div><br>
<div>
<div>On 2012-01-11, at 12:02 PM, Daniel-Constantin Mierla
wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
On 1/11/12 6:10 PM, Henry Fernandes wrote:
<blockquote
cite="mid:D02FE027-66BC-4A4B-8F5C-78DB5A66AC48@usinternet.com"
type="cite">Thanks for the tip.
<div><br>
</div>
<div>I increased this to start with 8MB private memory.
Now I'm getting the following error:</div>
<div><br>
</div>
<div><span class="Apple-tab-span"
style="white-space:pre"> </span><font
class="Apple-style-span" face="Courier">error: 500 -
Internal server error processing '{': buffer too
small (overflow) (-2)</font></div>
<div><br>
</div>
<div>I tried increasing the binrpc_max_body_size and
binrpc_struct_max_body_size but this doesn't help. I
still get the same error.</div>
</blockquote>
what are the values for these parameters? How many records
do you have in lcr tables?<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<blockquote
cite="mid:D02FE027-66BC-4A4B-8F5C-78DB5A66AC48@usinternet.com"
type="cite">
<div>-H</div>
<div><br>
</div>
<div><br>
<div>
<div>On 2012-01-11, at 10:47 AM, Daniel-Constantin
Mierla wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>Hello,<br>
<br>
it may be that the private memory is used
completely, so you need to start kamailio with
more.<br>
<br>
Starting with 3.2.0, it can be adjusted from
command line, via '-M':<br>
<br>
./kamailio -M 8 ...<br>
<br>
will start kamailio with 8MB of private memory
instead of the default 4.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
On 1/11/12 12:07 PM, Henning Westerholt wrote:<br>
<blockquote type="cite">On Tuesday 10 January
2012, Henry Fernandes wrote:<br>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">I upgraded from
Kamailio 3.1 to Kamailio 3.2 (x86_64/linux)<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">31c991 recently.
Since upgrading, my LCR does not work. The
"load_gws"<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">command always returns
a 2 (meaning no routes found).<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">When I do a "sercmd
lcr.dump_rules", I get the following error:<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"># sercmd
lcr.dump_rules<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">error: 500 - Internal
server error: out of memory<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite"><br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">I've tried increasing
"binrpc_max_body_size" and<br>
</blockquote>
</blockquote>
<blockquote type="cite">
<blockquote type="cite">"binrpc_struct_max_body_size",
but this doesn't help.<br>
</blockquote>
</blockquote>
<blockquote type="cite">Hi Henry,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">can you please take a
look to the server log files, this should
provide more<br>
</blockquote>
<blockquote type="cite">informations what
exactly the error is, which kind of memory is
lacking.<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Viele Grüße/ best
regards,<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">Henning Westerholt<br>
</blockquote>
<blockquote type="cite"><br>
</blockquote>
<blockquote type="cite">_______________________________________________<br>
</blockquote>
<blockquote type="cite">SIP Express Router (SER)
and Kamailio (OpenSER) - sr-users mailing list<br>
</blockquote>
<blockquote type="cite"><a
moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a><br>
</blockquote>
<blockquote type="cite"><a
moz-do-not-send="true"
href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><br>
</blockquote>
<br>
-- <br>
Daniel-Constantin Mierla -- <a
moz-do-not-send="true"
href="http://www.asipto.com/">http://www.asipto.com</a><br>
<a moz-do-not-send="true"
href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a>
-- <a moz-do-not-send="true"
href="http://twitter.com/miconda">http://twitter.com/miconda</a><br>
<br>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.asipto.com/">http://www.asipto.com</a>
<a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</div>
</blockquote>
</div>
<br>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla -- <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://linkedin.com/in/miconda">http://linkedin.com/in/miconda</a> -- <a class="moz-txt-link-freetext" href="http://twitter.com/miconda">http://twitter.com/miconda</a></pre>
</body>
</html>