<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt;color:#000000;"><div>I have some questions regarding the shared memory. I'm working with the version 1.5.2 and<br>its environment is quite simple. It does'nt storage any informations in the memory, like dialplan,<br>contacts of subscribers, carrierroute, LCR and etc. The only purpose of this server is being a<br>redirect server. Some calls have several possible destinations, reaching easily 12 contacts.<br>The config.h's constant MAX_BRANCHES is set in 12, the default number. Ok.<br>Like I said, almost the requests have more than 12 possible contacts. When it happens, Kamailio<br>logs these messages:<br><br>/usr/local/kamailio-1.5.2/sbin/kamailio[26188]: ERROR:core:append_branch: max nr of branches exceeded<br>/usr/local/kamailio-1.5.2/sbin/kamailio[26188]: ERROR:pv:pv_set_branch: append_branch action
 failed<br><br>Ok. It is not a problem. It is an error but it does not stop the system. The SIP messages still flowing <br>normally. The server works for several days, 24/7 without functional errors, receiving <br>five hundred thousand requests per day . But, usually at the weekends and the clock tells 2:30 am,<br>the company's cell phone rings bringing a message: 'the system is down'. Kamailio shows:<br><br>/usr/local/kamailio-1.5.2/sbin/kamailio[25492]: ERROR:core:add_avp: no more shm mem
<br>/usr/local/kamailio-1.5.2/sbin/kamailio[25492]: ERROR:exec:exec_avp: unable to add avp
<br><br>Kamailio stills running but it is not possible to route any request. All the new incoming<br>calls generates the same error: 'no more shm mem'. I changed the size of shared memory, <br>running Kamailio with '-m 64', but the server stopped again after some days. I see the options:<br><br>- increase MAX_BRANCHES<br>- increase again 'm' parameter (but it will just add more some days in the running time)<br>- reduce the maximum number of contacts to 11 of the script that returns them to Kamailio<br><br>So, my doubts are:<br><br>- is it possible to have a memory leak when the message "max nr of branches exceeded" is showed?<br>- changing '-m parameter' to a higher value, like 256, could affect the performance?<br><br>tks friends<br>bruno machado<br></div>
</div><br>


      <hr size=1>Veja quais são os assuntos do momento no Yahoo! + Buscados: <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/">Top 10</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/celebridades/">Celebridades</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/m%C3%BAsica/">Música</a> - <a href="http://br.rd.yahoo.com/mail/taglines/mail/*http://br.maisbuscados.yahoo.com/esportes/">Esportes</a></body></html>