<div dir="ltr"><div>I will rephrase my question maybe someone has any ideas If I check memory usage with pmap for highest using opensips process:</div><div>total kB         10774396 4579784 4564420</div><div>And this is the same as what top shows, around 4.5G memory usage.<br></div><div>If I use opensips-cli -x mi mem_pkg_dump for the same PID: heap size= 4294967296 used= 48336024, used+overhead=106291088, free=4188676208</div><div>And these numbers do not match. If pkg memory for this process is 48M as it says, what is using 4.5G?<br></div><div>opensips parameters were -m 2G -M 4G<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 14, 2023 at 12:14 AM M S <<a href="mailto:medeanwz@gmail.com">medeanwz@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 dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr">Hi List,<div>I am trying to understand memory reports and find a possible memory leak. I have: -a Q_MALLOC_DBG -m 2048 -M 4096 and memdump=1, my system has 32G ram, 8 workers.</div><div>When opensips starts I have 25G free memory. after 10days, I have only 12G free memory, top showing one of opensips processes using 10% of memory (others 8, 6, ...).</div><div>I use: </div><div>opensips-cli -x mi mem_shm_dump<br></div><div>opensips-cli -x mi mem_pkg_dump PID<br></div><div>and check log files:</div><div><div>Feb 14 01:25:25 used= 5908928, used+overhead=7815352, free=2139668296</div><div>Feb 14 01:47:04 used= 33337184, used+overhead=57932536, free=4237034760</div><div>Feb 14 01:51:49 used= 33771424, used+overhead=59342328, free=4235624968</div><div>Feb 14 01:51:52 used= 34237368, used+overhead=60780080, free=4234187216</div><div>Feb 14 01:51:54 used= 37329128, used+overhead=70855648, free=4224111648</div><div>Feb 14 01:51:56 used= 34966280, used+overhead=63143104, free=4231824192</div><div>Feb 14 01:51:59 used= 35916952, used+overhead=66163728, free=4228803568</div><div>Feb 14 01:52:01 used= 41913864, used+overhead=86107616, free=4208859680</div><div>Feb 14 01:52:04 used= 39219120, used+overhead=77303624, free=4217663672</div><div>Feb 14 01:53:32 used= 27932400, used+overhead=41340488, free=4253626808</div><div>Feb 14 01:53:37 used= 27933784, used+overhead=41333520, free=4253633776</div><div>Feb 14 01:53:41 used= 27932272, used+overhead=41344296, free=4253623000</div><div>Feb 14 01:53:48 used= 27939736, used+overhead=41346576, free=4253620720</div><div>Feb 14 01:53:51 used= 27955128, used+overhead=41359952, free=4253607344</div><div>Feb 14 01:53:53 used= 27953736, used+overhead=41364704, free=4253602592</div><div>Feb 14 01:53:56 used= 27950760, used+overhead=41362688, free=4253604608</div><div>Feb 14 01:53:58 used= 27954072, used+overhead=41373008, free=4253594288</div><div>Feb 14 01:54:01 used= 27974952, used+overhead=41400704, free=4253566592</div><div>Feb 14 01:54:03 used= 13399432, used+overhead=13933152, free=4281034144</div></div><div><br></div><div>The memory usage based on above memory dumps looks normal, but for example the process with 41913864 used memory is what top shows to use 10% of all memory (3.2G). What am I missing here and is there anywhere else I need to check?</div><div><br></div><div>Thank you!</div></div></div></div></div></div></div></div>
</blockquote></div>