Thanks Anca and Bogdan. Both of you are right in a way. SIPP is, after a while, leaving a lot of dialogs in "state 3". It could be because I am using the same server as the SIPP UAS and UAC. I will need to split the SIPP processes up to see if that changes things. <br>
<br>I am not sure if all the Dialogs in "state 3" are because of the stress test load I am putting on OpenSIPS or because of a combination of things (internet and SIPP test machine). Either way I want to be sure to implement a way to delete these stale dialogs. I saw this post<br>
<a href="http://opensips-open-sip-server.1449251.n2.nabble.com/destroy-dialog-on-transaction-timeout-and-load-balancer-td5832178.html">http://opensips-open-sip-server.1449251.n2.nabble.com/destroy-dialog-on-transaction-timeout-and-load-balancer-td5832178.html</a><br>
<br>Sounds like I should try to implement option 2 for dialogs that are (state != 4 && lifetime > 5 minute). <br><br>On a side note, last night SIPP left 501 dialogs in "state 3" on OpenSIPS. I waited 12 hours which is the default dialog timeout for those dialogs to be removed from the dialog table. Once they were removed I didn't see free memory of the machine go up any. And when I did a "top" command I saw that the 4 opensips child processes still had 6.4% of memory usage. Should the processes have freed up that memory? Or is that considered allocated memory that Opensips can use?<br>
<br><div class="gmail_quote">On Fri, Jan 21, 2011 at 6:19 AM, Bogdan-Andrei Iancu <span dir="ltr"><<a href="mailto:bogdan@opensips.org">bogdan@opensips.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Hi Duane,<br>
<br>
actually, checking the dump you sent, I see no trace of a leak - the pkg dump shows only script and DB conn mem, while the shm is empty.<br>
<br>
So, in your case, you may have a memory overload because because of runtime issues (but not a leak). If dialogs are not removed by BYEs, I guess you end up with TONS of dialogs in memory...<br>
dialog stuff is not releated to USRLOC at all....maybe the BYEs are not going trough loose_route() in script and not pushed for dialog matching<div class="im"><br>
<br>
Regards,<br>
Bogdan<br>
<br>
Duane Larson wrote:<br>
</div><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><div class="im">
After looking a little more do you think this would cause the memory issue...<br>
<br>
Looks like my SIPP test starts the call, does whatever I want and sends the BYE, but the dialog is still in the database after the call has ended between the UAS and UAC. I am currently using USRLOC db_mode = 2, so I am wondering if the dialogs are all just staying in memory. Not sure why my SIPP xmls or OpenSIPS config is not allowing the dialog to end in OpenSIPS<br>
<br></div><div class="im">
On Thu, Jan 20, 2011 at 2:07 PM, Duane Larson <<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a> <mailto:<a href="mailto:duane.larson@gmail.com" target="_blank">duane.larson@gmail.com</a>>> wrote:<br>
<br>
I do have some memory stuff in syslog. I have posted the output here<br>
<a href="http://paste.ubuntu.com/556285/" target="_blank">http://paste.ubuntu.com/556285/</a><br>
<br>
<br>
<br>
<br>
On Thu, Jan 20, 2011 at 4:13 AM, Bogdan-Andrei Iancu<br></div><div><div></div><div class="h5">
<<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a> <mailto:<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>>> wrote:<br>
<br>
Hi Duane,<br>
<br>
with<br>
<br>
mem_log=10<br>
mem_dump=1<br>
debug=3<br>
<br>
do you see at runtime any logs related to memory ?? (alloc,<br>
dealloc logs, no error) . Normally you shouldn't see<br>
any....only when a me dump is done (at shutdown for example).<br>
<br>
Regards,<br>
Bogdan<br>
<br>
Duane Larson wrote:<br>
<br>
I am trying to stress test my opensips config with SIPP<br>
but was seeing that after running it for a while I would<br>
start getting failed calls and eventually opensips would<br>
die. I recompiled opensips by following<br>
<br>
<a href="http://www.opensips.org/Resources/DocsTsMem" target="_blank">http://www.opensips.org/Resources/DocsTsMem</a><br>
<br>
I also added the following to the config<br>
mem_log=10<br>
mem_dump=1<br>
debug=3<br>
<br>
<br>
Now when I try and start OpenSIPS it dumps a TON of stuff<br>
to syslog. I do a ps -ef and there is one opensips<br>
process running for a while and then it dies. Before I<br>
started opensips my memory was at about<br>
1500000k<br>
then when I started opensips it started going down to<br>
1400000k<br>
<br>
When the single opensips process finally dies the memory<br>
never comes back. I am not sure what I need to do next in<br>
order to find out where the issue is.<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br></div></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div class="im"><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
-- Bogdan-Andrei Iancu<br>
OpenSIPS Event - expo, conf, social, bootcamp<br>
2 - 4 February 2011, ITExpo, Miami, USA<br>
OpenSIPS solutions and "know-how"<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br></div>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a> <mailto:<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>><div class="im"><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
<br>
<br>
<br>
-- --<br>
*--*--*--*--*--*<br>
Duane<br>
*--*--*--*--*--*<br>
--<br>
<br>
<br>
<br>
<br>
-- <br>
--<br>
*--*--*--*--*--*<br>
Duane<br>
*--*--*--*--*--*<br>
--<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
<br>
</div></blockquote><div><div></div><div class="h5">
<br>
<br>
-- <br>
Bogdan-Andrei Iancu<br>
OpenSIPS Event - expo, conf, social, bootcamp<br>
2 - 4 February 2011, ITExpo, Miami, USA<br>
OpenSIPS solutions and "know-how"<br>
<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>--<br>*--*--*--*--*--*<br>Duane<br>*--*--*--*--*--*<br>--<br>