Re: Jacorb ClientMessageReceptor threads not released after jacorb.connection.client.idle_timeout expires
Adam Stuckey <[email protected]>
| Newsgroups | gmane.comp.corba.jacorb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Nick, I am calling object._release on all created objects that support it. The problem I was seeing is during initial client ORB creation when the remote server ORB is not running. Since I sent this email 15 minutes ago, I have discovered the problem, and have determined I am an idiot. The resource leak was occurring during initialisation, specifically during the NamingContextHelper.narrow( nsRef ) which does not declare a checked exception. Surrounding this with it's own try / catch / throwable then tearing down everything created before it was created has fixed the problem. Sorry to have wasted your time, and the time of the fellow readers on the list. Regards, Adam -----Original Message----- From: Nick Cross <[email protected]> To: Discussions concerning CORBA development with JacORB <[email protected]> Cc: Adam Stuckey <[email protected]> Subject: Re: [jacorb-developer] Jacorb ClientMessageReceptor threads not released after jacorb.connection.client.idle_timeout expires Date: Mon, 10 Sep 2012 14:06:42 +0100 Hi, Can you clarify which version you are using? When you say, clean up resources, what does that entail? Do you call object._release on corba objects you no longer require? Thanks Nick On 10/09/12 13:46, Adam Stuckey wrote: > Hi there Nick, > > I am experiencing the same/similar problem. When running in a client mode, and > the remote ORB is down, my application attempts a re-connect every 30 seconds. > When the connection fails, I clean up all resources, destroy the ORB etc, but > the same ClientMessageReceptor and ServerSocketListener threads are spawned on > each connect attempt, and never cleared down. > RootPOA.deactivate, RootPOA.destroy, ORB.shutdown, ORB.destroy > > Am I missing out on some part for clearing up the resources? > > Regards, > Adam > > > > _______________________________________________ > jacorb-developer maillist - [email protected] > https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer > _______________________________________________ jacorb-developer maillist - [email protected] https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer