On 3/28/12 12:55 PM, Krishna Kurapati wrote:
Thanks Daniel, What is a typical configuration for
1000 and 10000
connections?
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.
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.
Then you have to take in consideration extra events, such as calls that
can use shared memory for transaction management.
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.
Cheers,
Daniel
On Wed, Mar 28, 2012 at 4:04 AM, Daniel-Constantin Mierla
<miconda(a)gmail.com <mailto:miconda@gmail.com>> wrote:
Hello,
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.
Cheers,
Daniel
On 3/26/12 3:57 PM, Krishna Kurapati wrote:
I keep getting these... I am using master
branch...
Mar 26 06:46:34 siptest /usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
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
Mar 26 06:46:48 siptest /usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
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
Mar 26 06:47:51 siptest /usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
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
Mar 26 06:48:45 siptest /usr/sbin/kamailio[5062]: ERROR: <core>
[tcp_main.c:1063]: ERROR: tcpconn_new: mem. allocation failure
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
I have never seen this before...
what could cause this? Is there something I could do to fix this
issue?
Krish Kura
_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
sr-users(a)lists.sip-router.org <mailto:sr-users@lists.sip-router.org>
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users
--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/
--
Daniel-Constantin Mierla
Kamailio Advanced Training, April 23-26, 2012, Berlin, Germany
http://www.asipto.com/index.php/kamailio-advanced-training/