Neil Bartlett wrote > I consider it very unlikely that all 50 bundles really need to be > executing code during the startup of the application. > > Are you using Declarative Services? If you publish services using DS > then they are implicitly lazy, i.e. the instantiation of the bundle > classloader and the service implementation only happens when the > service is actually demanded by a consumer. > > Neil > > On Thu, Sep 5, 2013 at 3:59 PM, Roland <
> wgl@ > > wrote: >> Richard S. Hall wrote >>> On 9/5/13 08:35 , Roland wrote: >>>> Hello OSGi-experts, >>>> >>>> are there any switches that I can use to optimize the start time of >>>> Apache >>>> Felix? (Lazy Activation is not an option for me) >>> ... >>> The main thing you can do is not do a lot of work in your activators. If >>> you need to do work here, you can use threads so that it can proceed it >>> parallel with other bundles. >>> ... >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: >> >>> [email protected] >> >>> For additional commands, e-mail: >> >>> [email protected] >> >> >> I'm using startup-hooks in my bundleactivators. >> >> >> I took a some measurements and I can say that starting 50 bundle takes >> as >> much time as the start of the framework, approximately 600ms (windows 7, >> Intel Core2 duo 3GHz). I wrote my own felix-launcher. >> >> Regards >> >> >> >> -- >> View this message in context: >> http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833p5004839.html >> Sent from the Apache Felix - Users mailing list archive at Nabble.com. >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: > [email protected] >> For additional commands, e-mail: > [email protected] >> > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > [email protected] > For additional commands, e-mail: > [email protected] It is not possible to use DS. everywhere. There are few bundles with BundleActivators. Thus, no Lazy Acitivation. -- View this message in context: http://apache-felix.18485.x6.nabble.com/How-to-improve-the-start-time-of-Apache-Felix-tp5004833p5004846.html Sent from the Apache Felix - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

