RE: Memory leak in nist implementation

Francisco Javier Tellez Vaquero <[email protected]> Mon, 30 Jun 2008 20:48:03 +0200
Newsgroups gmane.comp.voip.nist-sip
Message-ID <[email protected]>
--===============2891275025587855878==
Content-Type: multipart/alternative;
	boundary="_da862e21-3411-4305-bda2-fce89a197dc5_"

--_da862e21-3411-4305-bda2-fce89a197dc5_
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable


Hi again,
we have an application running as a B2BUA.=20

If we receive a BYE from an end point, we send the BYE to the other point. =
When we receive 200 response, we re-transmit it.

We see sometimes this response is lost (because of network problems, becaus=
e of terminal, ...). The question is the dialog is never destroyed until ap=
plication is re-started. We have wait for garbage collection (application i=
s running for days).

Regards.


> Date: Mon, 30 Jun 2008 14:39:30 -0400
> From: [email protected]
> To: [email protected]
> Subject: Re: [nist-sip] Memory leak in nist implementation
> CC: [email protected]
>=20
> When the tx times out delete the dialog and then you have to wait for
> the garbage collection to run before you check for leak.
>=20
> Ranga.
>=20
> On Mon, Jun 30, 2008 at 2:32 PM, Francisco Javier Tellez Vaquero
> <[email protected]> wrote:
> > Hi Ranga,
> > I agree the example case is a listener bug, but think the opposite case=
:
> >
> >   - You send a BYE request but no response is received.
> >
> > You have no control about this point, so the idea is trying to close th=
e
> > dialog anyway.
> >
> > BR.
> >
> >
> >> Date: Mon, 30 Jun 2008 14:09:05 -0400
> >> From: [email protected]
> >> To: [email protected]
> >> Subject: Re: [nist-sip] Memory leak in nist implementation
> >> CC: [email protected]
> >>
> >> On Mon, Jun 30, 2008 at 1:55 PM, Francisco Javier Tellez Vaquero
> >> <[email protected]> wrote:
> >> > Hi all,
> >> > I see sometimes not all stack objects are destroyed.
> >> >
> >> > For example, if you receive BYE request but no 200 response is sent,
> >> > dialog
> >> > is never closed. There're a lot of different cases (ACK's lost, ...)=
.
> >>
> >> Not sending a 200 OK to a BYE is an application bug. Please fix that.
> >>
> >> Please post a specific test case (without listener bugs) and I can loo=
k
> >> into it.
> >>
> >> Ranga
> >>
> >> >
> >> > I have tried to free memory executing 'terminate()' and/or 'delete()=
'
> >> > methods in both transaction and dialog objects but without any resul=
t.
> >> >
> >> > Is there any way to force to free these objects (timers, dialogs,
> >> > transactions, ...) ?
> >> >
> >> > Regards.
> >> >
> >> >
> >> >
> >> > ________________________________
> >> > Tecnolog=EDa, moda, motor, viajes,.suscr=EDbete a nuestros boletines=
 para
> >> > estar
> >> > siempre a la =FAltima MSN Newsletters
> >> > _______________________________________________
> >> > nist-sip mailing list
> >> > [email protected]
> >> > http://www-x.antd.nist.gov/mailman/listinfo/nist-sip
> >> >
> >> >
> >>
> >>
> >>
> >> --
> >> M. Ranganathan
> >
> > ________________________________
> > Sigue los principales acontecimientos deportivos en directo. MSN Motor
>=20
>=20
>=20
> --=20
> M. Ranganathan

_________________________________________________________________
Tecnolog=EDa, moda, motor, viajes,=85suscr=EDbete a nuestros boletines para=
 estar siempre a la =FAltima
http://newsletters.msn.com/hm/maintenanceeses.asp?L=3DES&C=3DES&P=3DWCMaint=
enance&Brand=3DWL&RU=3Dhttp%3a%2f%2fmail.live.com=

--_da862e21-3411-4305-bda2-fce89a197dc5_
Content-Type: text/html; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable

<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body class=3D'hmmessage'>
Hi again,<br>we have an application running as a B2BUA. <br><br>If we recei=
ve a BYE from an end point, we send the BYE to the other point. When we rec=
eive 200 response, we re-transmit it.<br><br>We see sometimes this response=
 is lost (because of network problems, because of terminal, ...). The quest=
ion is the dialog is never destroyed until application is re-started. We ha=
ve wait for garbage collection (application is running for days).<br><br>Re=
gards.<br><br><br>&gt; Date: Mon, 30 Jun 2008 14:39:30 -0400<br>&gt; From: =
[email protected]<br>&gt; To: [email protected]<br>&gt; Subject: Re=
: [nist-sip] Memory leak in nist implementation<br>&gt; CC: [email protected]=
ist.gov<br>&gt; <br>&gt; When the tx times out delete the dialog and then y=
ou have to wait for<br>&gt; the garbage collection to run before you check =
for leak.<br>&gt; <br>&gt; Ranga.<br>&gt; <br>&gt; On Mon, Jun 30, 2008 at =
2:32 PM, Francisco Javier Tellez Vaquero<br>&gt; &lt;fjavier_tellez@hotmail=
.com&gt; wrote:<br>&gt; &gt; Hi Ranga,<br>&gt; &gt; I agree the example cas=
e is a listener bug, but think the opposite case:<br>&gt; &gt;<br>&gt; &gt;=
   - You send a BYE request but no response is received.<br>&gt; &gt;<br>&g=
t; &gt; You have no control about this point, so the idea is trying to clos=
e the<br>&gt; &gt; dialog anyway.<br>&gt; &gt;<br>&gt; &gt; BR.<br>&gt; &gt=
;<br>&gt; &gt;<br>&gt; &gt;&gt; Date: Mon, 30 Jun 2008 14:09:05 -0400<br>&g=
t; &gt;&gt; From: [email protected]<br>&gt; &gt;&gt; To: fjavier_tellez@hotm=
ail.com<br>&gt; &gt;&gt; Subject: Re: [nist-sip] Memory leak in nist implem=
entation<br>&gt; &gt;&gt; CC: [email protected]<br>&gt; &gt;&gt;<br>&g=
t; &gt;&gt; On Mon, Jun 30, 2008 at 1:55 PM, Francisco Javier Tellez Vaquer=
o<br>&gt; &gt;&gt; &lt;[email protected]&gt; wrote:<br>&gt; &gt;&g=
t; &gt; Hi all,<br>&gt; &gt;&gt; &gt; I see sometimes not all stack objects=
 are destroyed.<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; For example, if=
 you receive BYE request but no 200 response is sent,<br>&gt; &gt;&gt; &gt;=
 dialog<br>&gt; &gt;&gt; &gt; is never closed. There're a lot of different =
cases (ACK's lost, ...).<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Not sending a 20=
0 OK to a BYE is an application bug. Please fix that.<br>&gt; &gt;&gt;<br>&=
gt; &gt;&gt; Please post a specific test case (without listener bugs) and I=
 can look<br>&gt; &gt;&gt; into it.<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; Ranga=
<br>&gt; &gt;&gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; I have tried =
to free memory executing 'terminate()' and/or 'delete()'<br>&gt; &gt;&gt; &=
gt; methods in both transaction and dialog objects but without any result.<=
br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Is there any way to force to fr=
ee these objects (timers, dialogs,<br>&gt; &gt;&gt; &gt; transactions, ...)=
 ?<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; Regards.<br>&gt; &gt;&gt; &g=
t;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt; ______=
__________________________<br>&gt; &gt;&gt; &gt; Tecnolog=EDa, moda, motor,=
 viajes,.suscr=EDbete a nuestros boletines para<br>&gt; &gt;&gt; &gt; estar=
<br>&gt; &gt;&gt; &gt; siempre a la =FAltima MSN Newsletters<br>&gt; &gt;&g=
t; &gt; _______________________________________________<br>&gt; &gt;&gt; &g=
t; nist-sip mailing list<br>&gt; &gt;&gt; &gt; [email protected]<br>&g=
t; &gt;&gt; &gt; http://www-x.antd.nist.gov/mailman/listinfo/nist-sip<br>&g=
t; &gt;&gt; &gt;<br>&gt; &gt;&gt; &gt;<br>&gt; &gt;&gt;<br>&gt; &gt;&gt;<br=
>&gt; &gt;&gt;<br>&gt; &gt;&gt; --<br>&gt; &gt;&gt; M. Ranganathan<br>&gt; =
&gt;<br>&gt; &gt; ________________________________<br>&gt; &gt; Sigue los p=
rincipales acontecimientos deportivos en directo. MSN Motor<br>&gt; <br>&gt=
; <br>&gt; <br>&gt; -- <br>&gt; M. Ranganathan<br><br /><hr />Sigue al minu=
to las principales noticias de tu ciudad <a href=3D'http://deportes.es.msn.=
com/' target=3D'_new'>MSN Deportes</a></body>
</html>=

--_da862e21-3411-4305-bda2-fce89a197dc5_--

--===============2891275025587855878==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
nist-sip mailing list
[email protected]
http://www-x.antd.nist.gov/mailman/listinfo/nist-sip

--===============2891275025587855878==--