<div dir="ltr"><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div>Yes, that option looks promising and I just enabled it. I'll watch it for the next few days to see if that solve the problem.</div><div><br></div><div>Thanks!</div><div>-Ben<br><br></div></div></div></div></div></div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Feb 11, 2019 at 2:38 PM Daniel-Constantin Mierla <<a href="mailto:miconda@gmail.com">miconda@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>can you try with the next global parameter?</p>
    <p>mem_join = yes</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <div class="gmail-m_1722454058726145286moz-cite-prefix">On 11.02.19 22:57, Benjamin Roy wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr">
          <div dir="ltr">
            <div dir="ltr">
              <div dir="ltr">
                <div>Hi, I'm hoping someone can guide me in the right
                  direction.</div>
                <div><br>
                </div>
                <div>In kamailio 5.2.1 I'm getting the following memory
                  errors after a while (hours or days) of sending
                  messages with jsonrpc. Restarting kamailio clears them
                  for a while. Any suggestions on what I should change,
                  or how to better identify the issue?</div>
                <div><br>
                </div>
                <div>24(6177) ERROR: <core>
                  [core/mem/q_malloc.c:291]: qm_find_free():
                  qm_find_free(0x7f1cbe6fd000, 5712); Free fragment not
                  found!</div>
                <div>24(6177) ERROR: <core>
                  [core/mem/q_malloc.c:425]: qm_malloc():
                  qm_malloc(0x7f1cbe6fd000, 5712) called from tm:
                  h_table.c: build_cell(339), module: tm; Free fragment
                  not found!</div>
                <div>24(6177) ERROR: tm [uac.c:422]: t_uac_prepare():
                  short of cell shmem</div>
                <div>24(6177) ERROR: pua [send_publish.c:700]:
                  send_publish(): in t_request tm module function</div>
                <div>24(6177) ERROR: pua_rpc [pua_rpc.c:280]:
                  pua_rpc_publish_mode(): pua send_publish failed</div>
                <div><br>
                </div>
                <div>I have these buffer values in the config file</div>
                <div>
                  <div>tcp_rd_buf_size=65536</div>
                  <div>pv_buffer_size=32768<br>
                  </div>
                </div>
                <div><br>
                </div>
                <div>and I'm running kamailio with these memory options
                  "-m 1024 -M 16"</div>
                <div><br>
                </div>
                <div>The jsonrpc message I'm sending look like this</div>
                <div>
                  <div>{</div>
                  <div>"jsonrpc": "2.0", </div>
                  <div>"method": "pua.publish", </div>
                  <div>"params": [</div>
                  <div><a class="gmail-m_1722454058726145286moz-txt-link-rfc2396E">"sip:172.1.1.3:5060;transport=tcp"</a>, </div>
                  <div>"300", </div>
                  <div>"reg", </div>
                  <div>"application/reginfo+xml", </div>
                  <div>".", </div>
                  <div>".", </div>
                  <div>".", </div>
                  <div>".",</div>
                  <div>"<?xml version='1.0' ?></div>
                  <div><reginfo state='partial' version='0'
                    xmlns='urn:ietf:params:xml:ns:reginfo' xmlns:xsi='<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>'></div>
                  <div>    <registration aor='<a href="mailto:sip%3A55555@uw.edu" target="_blank">sip:55555@uw.edu</a>'
                    id='a19685' state='active'></div>
                  <div>    <contact duration-registered='906'
                    event='registered'
                    id='c19685--1732979172--1829864152-2' q='1.0'
                    state='active'></div>
                  <div>       
<uri><a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="mailto:sips:55555@172.1.2.4:62270;transport=tls;avaya-sc-enabled" target="_blank">sips:55555@172.1.2.4:62270;transport=tls;avaya-sc-enabled</a></uri></div>
                  <div>        <elin></elin></div>
                  <div>    </contact></div>
                  <div>    </registration></div>
                  <div></reginfo></div>
                  <div>"</div>
                  <div>], </div>
                  <div>"id": 1</div>
                  <div>}</div>
                </div>
                <div><br>
                </div>
                <div>Thanks,</div>
                <div>-Ben</div>
                <div>
                  <div dir="ltr" class="gmail-m_1722454058726145286gmail-m_2736546544393210905gmail_signature">
                    <div dir="ltr">
                      <div>
                        <div dir="ltr">
                          <div><br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      <fieldset class="gmail-m_1722454058726145286mimeAttachmentHeader"></fieldset>
      <pre class="gmail-m_1722454058726145286moz-quote-pre">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_1722454058726145286moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="gmail-m_1722454058726145286moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
<a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="gmail-m_1722454058726145286moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a></pre>
  </div>

</blockquote></div>