[jacorb-developer] RE :RE :Re: JacORB 3.6.1 : Client closing

Nicolas Aguilé na.ais40 at wanadoo.fr
Mon Jun 29 15:30:24 CEST 2015


_release() is not call in the client when client finishes.
I've seen the chapter 3.2.13 in the JacORB Developper Guide
Does it meen that if the call to _release() is forgotten, no process does the job  ?

Nicolas

----- message d'origine -----
De : "Nicolas Aguilé" <na.ais40 at wanadoo.fr>
date lun. 29/06/2015 11:47 (GMT +02:00)
À : "Nick Cross" <jacorb at goots.org>
Objet : RE :Re: [jacorb-developer] JacORB 3.6.1 : Client closing

It was in JacORB 3.6 not 3.6.1 as mentionned in the mail object.
concerning the call to _release() i'm not sure.I ask to the developpers in charge of the client code.
Thanks

----- message d'origine -----
De : "Nick Cross" <jacorb at goots.org>
date lun. 29/06/2015 11:39 (GMT +02:00)
À : "Nicolas Aguilé" <na.ais40 at wanadoo.fr>, "Discussions concerning CORBA development with JacORB" <jacorb-developer at lists.spline.inf.fu-berlin.de>
Cc : "Nicolas Aguilé" <na.ais40 at wanadoo.fr>
Objet : Re: [jacorb-developer] JacORB 3.6.1 : Client closing

Hi,

Can you confirm the version you are using please?

When your client finishes with the CORBA Objwebect do you call _release ?

Thanks

Nick


Clients should disconnect automatically now after a system exceo

On 29/06/15 09:44, Nicolas Aguilé wrote:
> Hi,
> After update, we have had a suspect behavior (one shot) after a network cut : one client has never recover the connection&nbsp;(related to BZ967 ????)&nbsp;and the following message appears in our log file :
> 2015-06-25 06:36:43,423 DEBUG [sicops-LFMY-export-2] (ClientConnectionManager.java:179) - ClientConnectionManager: cannot release ClientGIOPConnection to nco4-1-salon-diff.ba701.nco4-1.nco4.air.defense:14300 (562e6f02) (still has&nbsp;48639&nbsp;client(s))2015-06-25 06:36:43,424 DEBUG [sicops-LFMY-export-2] (Delegate.java:2188) - Delegate released!2015-06-25 06:36:43,425&nbsp; INFO [sicops-LFMY-export-2] (ClientConnectionManager.java:148) - ClientConnectionManager: found ClientGIOPConnection to nco4-1-salon-diff.ba701.nco4-1.nco4.air.defense:14300 (562e6f02)
>
> What surprising us is the number of clients (48639) still using the GIOP connection.Regarding this, we have a look on the code and we have a question :
>
> If the property&nbsp;disconnect_after_systemexception is not set (NOT OUR CASE) the disconnect method in the Delegate returns before releasing the connection (seems to be normal regarding de property description) but is there any risk to keep Client affected to Connection and have a memory leak ?
>
>
> &nbsp; &nbsp; private void disconnect(ClientConnection connectionInUse)&nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; if (connectionInUse == null)&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp; &nbsp; &nbsp; &nbsp; }
> &nbsp; &nbsp; &nbsp; &nbsp; if (!disconnectAfterNonRecoverableSystemException)&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp; &nbsp; &nbsp; &nbsp; }
> &nbsp; &nbsp; &nbsp; &nbsp; synchronized(bind_sync)&nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (connections[currentConnection.ordinal ()] == null)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (connections[currentConnection.ordinal ()] != connectionInUse)&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; {&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; logger.debug("release the connection");
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; conn_mg.releaseConnection( connections[currentConnection.ordinal ()] );&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; connections[currentConnection.ordinal ()] = null;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; bound = false;&nbsp; &nbsp; &nbsp; &nbsp; }&nbsp; &nbsp; }
> Thanks
> Nicolas
> _______________________________________________
> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>



More information about the jacorb-developer mailing list