Hi, On 21.06.2010 16:20, Martin Ritchie wrote: > Hi, > > Over in the Qpid team we've been increasing our usage and therefore > our testing with Felix. We have hit an issue where our automated > testing will hang during shutdown. This has only started occuring > since wi enabled felix in our code base. Though there have been a lot > of other changes too. However, we have had PermGen memory issues as a > result of stating and stopping felix in our full test suit so I > believe the hangs are related. > > What I'm seeing is that when the Qpid java broker is shutdown > (process.destroy()) so our shutdown hook is not used. but the VM does > appear to do some cleanup. That said the three Felix threads don't > appear to shutdown. > > DispatchQueue, StartLevel and PackageAdmin threads are the three in > question. The EventDispatcher created in DispatchQueue does not appear > to be daemon thread but the other two are. Is this intended?
These threads are stopped when the framework is stopped. How you exactly do this depends on your integration of the frasmework. One option would be to stop the system bundle (bundle 0). > > I've attached a patch to set it as a Daemon but not sure that it is > the real answer. Will try and find some time to further investigate > this issue but I dont have a lot of spare debug time just now. I don't think it is the correct fix to just turn the three threads into daemon threads. The correct fix is to properly shutdown the framework. Regards Felix > > Cheers > > Martin
