On Sun, 2012-04-22 at 05:38, Zsolt Kúti wrote:
> On Sun, 22 Apr 2012 05:15:12 -0400
> Greg Trasuk <[email protected]> wrote:
> 
> > 
> > 
> > You'd also need to make sure that you're calling terminate on the
> > lookupDiscoveryManager that was passed in.  If you are, then I'd check
> > to see if Tomcat is right about the threads being kept around.  It
> > might be that they just take a few seconds to terminate.
> SDM.terminate() calls LD.terminate().

Is the ServiceDiscoveryManager creating its own discovery manager
through the configuration, or are you passing in an LDM through the
constructor?  ServiceDiscoveryManager will only terminate the
DiscoveryManager if it was created by the SDM, and not passed in through
the constructor.

Cheers,

Greg.

> PermGen error does appear after some redeploys. Since TC reports
> similar for other sources (although to lesser extent) I'll try to
> separate them first.
> 
> Thanks!
> Zsolt
> 
> > 
> > Greg.
> > On Sat, 2012-04-21 at 05:01, Zsolt Kúti wrote:
> > > Hello,
> > > 
> > > When my webapp is undeployed Tomcat reports several threads that
> > > failed to stop and leaks memory:
> > > [multicast discovery response listener]
> > > [multicast discovery request] etc.
> > > During development redeployment is frequent causing problem sooner
> > > or later.
> > > 
> > > These threads come from LookupDiscovery passed to
> > > ServiceDiscoveryManager instance. 
> > > Care is taken to call SDM.terminate() in servlet's destroy().
> > > 
> > > 
> > > Any advice on what is the suggested practice to use River in such
> > > environment is appreciated.
> > > 
> > > Thanks
> > > Zsolt
> > 

Reply via email to