<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" 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="moz-cite-prefix">On 11.02.19 22:57, Benjamin Roy wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKKF7+NVnjCvt_qJ+9ZYfhop6zjUmYPNLGE9VTUT6bgBWA7oDA@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <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="moz-txt-link-rfc2396E" href="sip:172.1.1.3:5060;transport=tcp">"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" moz-do-not-send="true">http://www.w3.org/2001/XMLSchema-instance</a>'></div>
                  <div>    <registration aor='<a
                      href="mailto:sip%3A55555@uw.edu" target="_blank"
                      moz-do-not-send="true">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="moz-txt-link-abbreviated" href="mailto:sips:55555@172.1.2.4:62270;transport=tls;avaya-sc-enabled">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_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="mimeAttachmentHeader"></fieldset>
      <pre class="moz-quote-pre" wrap="">_______________________________________________
Kamailio (SER) - Users Mailing List
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org">sr-users@lists.kamailio.org</a>
<a class="moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
    </blockquote>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a>
<a class="moz-txt-link-abbreviated" href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a class="moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a>
Kamailio World Conference - May 6-8, 2019 -- <a class="moz-txt-link-abbreviated" href="http://www.kamailioworld.com">www.kamailioworld.com</a>
Kamailio Advanced Training - Mar 4-6, 2019 in Berlin; Mar 25-27, 2019, in Washington, DC, USA -- <a class="moz-txt-link-abbreviated" href="http://www.asipto.com">www.asipto.com</a></pre>
  </body>
</html>