<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<br>
On 3/28/12 12:55 PM, Krishna Kurapati wrote:
<blockquote
cite="mid:CAOzCjAeWLgfTmz_XUQF2OQkLGv_v_HdBthR2t_ppdjRmEqs-tg@mail.gmail.com"
type="cite">Thanks Daniel, What is a typical configuration for
1000 and 10000 connections?<br>
</blockquote>
It depends of what is associated with a connection, if there is a
registration, then also the usrloc record has to be taken in
account.<br>
<br>
The best is that you start is and open like 1000 connections. use
kamctl/sercmd to dump shared memory usage. The add another 1000 and
see the difference of the used memory.<br>
<br>
Then you have to take in consideration extra events, such as calls
that can use shared memory for transaction management.<br>
<br>
On current OSes, kamailio does not block the memory allocated for
it. It is virtual memory that is given on demand. It is more like
upper limit for safety reasons, in case there is a leak, kamailio
stops asking for more memory, therefore it does not block other
apps. So you can give to '-m' parameter values such as few gigas.<br>
<br>
Cheers,<br>
Daniel<br>
<blockquote
cite="mid:CAOzCjAeWLgfTmz_XUQF2OQkLGv_v_HdBthR2t_ppdjRmEqs-tg@mail.gmail.com"
type="cite"><br>
<div class="gmail_quote">On Wed, Mar 28, 2012 at 4:04 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:miconda@gmail.com">miconda@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000"> Hello,<br>
<br>
looks like you haven't reserved enough shared memory for the
load you want to handle. Increase it via -m command line
parameter, by default is 32MB which is quite low for stress
testing.<br>
<br>
Cheers,<br>
Daniel
<div>
<div class="h5"><br>
<br>
On 3/26/12 3:57 PM, Krishna Kurapati wrote: </div>
</div>
<blockquote type="cite">
<div>
<div class="h5">I keep getting these... I am using
master branch...
<div><br>
</div>
<div>
<div>Mar 26 06:46:34 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem.
allocation failure</div>
<div>Mar 26 06:46:34 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:4135]: ERROR: handle_new_connect:
tcpconn_new failed, closing socket</div>
<div>Mar 26 06:46:48 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem.
allocation failure</div>
<div>Mar 26 06:46:48 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:4135]: ERROR: handle_new_connect:
tcpconn_new failed, closing socket</div>
<div>Mar 26 06:47:51 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem.
allocation failure</div>
<div>Mar 26 06:47:51 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:4135]: ERROR: handle_new_connect:
tcpconn_new failed, closing socket</div>
<div>Mar 26 06:48:45 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem.
allocation failure</div>
<div>Mar 26 06:48:45 siptest
/usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:4135]: ERROR: handle_new_connect:
tcpconn_new failed, closing socket</div>
</div>
<div><br>
</div>
<div>I have never seen this before...</div>
<div><br>
</div>
<div>what could cause this? Is there something I could
do to fix this issue?</div>
<div><br>
</div>
<div>Krish Kura</div>
<br>
<fieldset></fieldset>
<br>
</div>
</div>
<pre>_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a moz-do-not-send="true" href="mailto:sr-users@lists.sip-router.org" target="_blank">sr-users@lists.sip-router.org</a>
<a moz-do-not-send="true" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a><span class="HOEnZb"><font color="#888888">
</font></span></pre>
<span class="HOEnZb"><font color="#888888"> </font></span></blockquote>
<span class="HOEnZb"><font color="#888888"> <br>
<pre cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a moz-do-not-send="true" href="http://www.asipto.com/index.php/kamailio-advanced-training/" target="_blank">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</font></span></div>
</blockquote>
</div>
<br>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
<a class="moz-txt-link-freetext" href="http://www.asipto.com/index.php/kamailio-advanced-training/">http://www.asipto.com/index.php/kamailio-advanced-training/</a></pre>
</body>
</html>