<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>"sip:172.1.1.3:5060;transport=tcp", </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>sips:55555@172.1.2.4:62270;transport=tls;avaya-sc-enabled</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>