<div dir="ltr"><div>Hi,</div><div><br></div><div>We use kamailio as a router in our PBX server. The test below causes significant decreasing of free shared memory and </div><div>many "out of memory" errors in kamailio log:</div><div><br></div><div>Preconditions: kamailio server with 256Mb of shared memory allocated.</div><div><br></div><div>Test actions: run two load testing scripts at the same time: </div><div>  1) 10000 register operations;</div><div>  2) 20000 calls (about 300 per sec);</div><div><br></div><div>Results: </div><div>    1) memory consumption in peak values:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">        </span>  - shmem.free_size: 1.8Mb</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">    </span>  - core: 120Mb:</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">              </span>  - build_req_buf_from_sip_req: 12.5Mb</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">                </span>  - msg_lump_cloner: 23.6Mb</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">           </span>  - sip_msg_shm_clone: 84Mb</div><div><span class="gmail-Apple-tab-span" style="white-space:pre">   </span>  - tm module: 118Mb</div><div>    2) shmem.free_size parameter back to normal after the test, so it could be concluded that we don't have any memory leaks.</div><div><br></div><div>Is it normal behavior or it's possible to do something to increase performance?</div><div><br></div><div>PS: the same behaviour occurs for various values of shared memory defined at the start of kamailio server (128Mb, 256Mb, 512Mb etc.).</div><div><br></div><div>Thank you,</div><div>Andrey</div></div>