<div dir="ltr"><div>Hi,</div><div>Thanks,</div><div>How do i find memory leaks?</div><div>when my application starts the it shows the following values:</div><div> </div><div>shmem:fragments = 143898</div><div>shmem:freesize = 3446570952</div>
<div>shmem:max_used_size = 861854768</div><div>shmem:real_used_size = 848396344</div><div>shmem:total_size = 4294967296</div><div>shmem:used_size = 319676976</div><div> </div><div>I divided the &quot;real_used_size&quot; with the &quot;total_size&quot; and notice that it is 20%. So, this is my initial value of the application.</div>
<div> </div><div>After 2 months with 40,000 calls per day, the relations between these values is 39%. (doing a reload of the data that occupies 20% failed due to &quot;no memory&quot;)</div><div>So, 19% occupation of memory is normal for this amount of calls? or is it a memory leak? if it is a memeory leak, how do i see where?</div>
<div> </div><div>Uri</div><div> </div><div> </div><div> </div><div>On 09/05/2012 10:19 AM, Uri Shacked wrote:<br>&gt;<i> Hi,
</i>&gt;<i> When I start kamailio it loads some data into memory.
</i>&gt;<i> Now calls are starting to gather up. How can I check how mach memory 
</i>&gt;<i> does my avp&#39;s take?
</i>&gt;<i> BR,
</i>&gt;<i> Uri
</i>Hello Uri,<br><br>avp&#39;s are associated with the transactions, so they free&#39;d when the <br>transaction stops(and calls are composed of transactions). This is true <br>for dialog information as well (dlg_var&#39;s etc.). Continuous growth in <br>
memory at a constant call rate (incoming sip requests) might mean a <br>leak. If you need statistics about the total memory usage you can use <br>`kamctl fifo get_statistics all` and check for the shmem real_used_size <br>
and max_used_size fields.<br><br>Cheers,<br>Marius<br><br>-- <br>Zbihlei Marius<br><br>Head of<br>Linux Development Services Romania<br><br></div></div>